s/ProjectDir/MSBuildProjectDirectory/ in MSBuild include files

I don't think anything was broken, this is just a precaution
This commit is contained in:
YoshiRulz 2023-03-16 10:44:48 +10:00
parent 3c86ec6964
commit 389fd5015f
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
7 changed files with 20 additions and 20 deletions

View File

@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<AnalysisLevel>5</AnalysisLevel>
<CodeAnalysisRuleSet>$(ProjectDir)../../Common.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRuleSet>$(MSBuildProjectDirectory)/../../Common.ruleset</CodeAnalysisRuleSet>
<ContinuousIntegrationBuild Condition=" '$(GITLAB_CI)' != '' Or '$(APPVEYOR)' != '' ">true</ContinuousIntegrationBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<ErrorReport>prompt</ErrorReport>
@ -35,8 +35,8 @@
<PackageReference Include="Meziantou.Analyzer" Version="1.0.707" PrivateAssets="all" />
<PackageReference Include="Nullable" Version="1.3.1" PrivateAssets="all" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.435" PrivateAssets="all" /><!-- don't forget to update .stylecop.json at the same time -->
<Analyzer Include="$(ProjectDir)../../References/BizHawk.Analyzer.dll" />
<AdditionalFiles Include="$(ProjectDir)../../.stylecop.json" />
<Analyzer Include="$(MSBuildProjectDirectory)/../../References/BizHawk.Analyzer.dll" />
<AdditionalFiles Include="$(MSBuildProjectDirectory)/../../.stylecop.json" />
</ItemGroup>
<PropertyGroup Condition=" $(IsTargetingNetFramework) ">
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>

View File

@ -11,6 +11,6 @@
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.2" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.8.0" />
<Compile Include="$(ProjectDir)../AnalyzersCommon/**/*.cs" />
<Compile Include="$(MSBuildProjectDirectory)/../AnalyzersCommon/**/*.cs" />
</ItemGroup>
</Project>

View File

@ -7,6 +7,6 @@
<None Remove="*.sh" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Copy SourceFiles="$(OutputPath)$(MSBuildProjectName).dll" DestinationFolder="$(ProjectDir)../../References/" />
<Copy SourceFiles="$(OutputPath)$(MSBuildProjectName).dll" DestinationFolder="$(MSBuildProjectDirectory)/../../References/" />
</Target>
</Project>

View File

@ -1,7 +1,7 @@
<Project>
<Import Project="../Common.props" />
<PropertyGroup>
<OutputPath>$(ProjectDir)bin/$(Configuration)/</OutputPath>
<OutputPath>$(MSBuildProjectDirectory)/bin/$(Configuration)/</OutputPath>
</PropertyGroup>
<ItemGroup>
<None Remove="*.sh" />

View File

@ -3,31 +3,31 @@
<TargetFramework>net48</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition=" '$(BIZHAWK_DATA_HOME)' == '' ">
<BIZHAWK_DATA_HOME>$(ProjectDir)../../output/</BIZHAWK_DATA_HOME>
<BIZHAWK_DATA_HOME>$(MSBuildProjectDirectory)/../../output/</BIZHAWK_DATA_HOME>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.Windows.Forms" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="5.0.0" />
<Reference Include="BizHawk.Client.Common"
HintPath="$(ProjectDir)../../output/dll/BizHawk.Client.Common.dll"
HintPath="$(MSBuildProjectDirectory)/../../output/dll/BizHawk.Client.Common.dll"
Private="true" />
<Reference Include="BizHawk.Client.EmuHawk"
HintPath="$(ProjectDir)../../output/EmuHawk.exe"
HintPath="$(MSBuildProjectDirectory)/../../output/EmuHawk.exe"
Private="true" />
<Reference Include="BizHawk.Common"
HintPath="$(ProjectDir)../../output/dll/BizHawk.Common.dll"
HintPath="$(MSBuildProjectDirectory)/../../output/dll/BizHawk.Common.dll"
Private="true" />
<Reference Include="BizHawk.Emulation.Common"
HintPath="$(ProjectDir)../../output/dll/BizHawk.Emulation.Common.dll"
HintPath="$(MSBuildProjectDirectory)/../../output/dll/BizHawk.Emulation.Common.dll"
Private="true" />
<Reference Include="BizHawk.Emulation.Cores"
HintPath="$(ProjectDir)../../output/dll/BizHawk.Emulation.Cores.dll"
HintPath="$(MSBuildProjectDirectory)/../../output/dll/BizHawk.Emulation.Cores.dll"
Private="true" />
<Reference Include="BizHawk.Emulation.DiscSystem"
HintPath="$(ProjectDir)../../output/dll/BizHawk.Emulation.DiscSystem.dll"
HintPath="$(MSBuildProjectDirectory)/../../output/dll/BizHawk.Emulation.DiscSystem.dll"
Private="true" />
<Reference Include="BizHawk.WinForms.Controls"
HintPath="$(ProjectDir)../../output/dll/BizHawk.WinForms.Controls.dll"
HintPath="$(MSBuildProjectDirectory)/../../output/dll/BizHawk.WinForms.Controls.dll"
Private="true" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">

View File

@ -3,20 +3,20 @@
<PropertyGroup>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<DefineConstants>$(DefineConstants);AVI_SUPPORT</DefineConstants>
<DocumentationFile>$(ProjectDir)bin/doc_comments.xml</DocumentationFile>
<DocumentationFile>$(MSBuildProjectDirectory)/bin/doc_comments.xml</DocumentationFile>
<LangVersion>9.0</LangVersion>
<MSBuildWarningsAsMessages>NU1702</MSBuildWarningsAsMessages>
<NoWarn>$(NoWarn);CS1573;CS1591</NoWarn>
<OutputPath>$(ProjectDir)../../output/dll</OutputPath>
<OutputPath>$(MSBuildProjectDirectory)/../../output/dll</OutputPath>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
</PropertyGroup>
<PropertyGroup Condition=" '$(MachineRunAnalyzersDuringBuild)' == '' ">
<RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
</PropertyGroup>
<ItemGroup>
<Analyzer Include="$(ProjectDir)../../References/BizHawk.SrcGen.ReflectionCache.dll" />
<Analyzer Include="$(MSBuildProjectDirectory)/../../References/BizHawk.SrcGen.ReflectionCache.dll" />
</ItemGroup>
<ItemGroup Condition=" '$(Configuration)' != 'Debug' ">
<Compile Remove="$(ProjectDir)debug/**/*" />
<Compile Remove="$(MSBuildProjectDirectory)/debug/**/*" />
</ItemGroup>
</Project>

View File

@ -2,7 +2,7 @@
<Import Project="MainSlnCommon.props" />
<PropertyGroup>
<DefineConstants>$(DefineConstants);EXE_PROJECT</DefineConstants>
<OutputPath>$(ProjectDir)../../output</OutputPath>
<OutputPath>$(MSBuildProjectDirectory)/../../output</OutputPath>
<TargetName>$(MSBuildProjectName.Substring($([MSBuild]::Add($(MSBuildProjectName.LastIndexOf('.')), 1))))</TargetName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
@ -12,7 +12,7 @@
<OutputType>WinExe</OutputType>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(ProjectDir)../BizHawk.Common/OSTailoredCode.cs" />
<Compile Include="$(MSBuildProjectDirectory)/../BizHawk.Common/OSTailoredCode.cs" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<ItemGroup>