-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathvs-solutionpersistence.proj
36 lines (29 loc) · 2.19 KB
/
vs-solutionpersistence.proj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<Project>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<ItemGroup>
<!-- Override default TargetFrameworks to skip building net framework. -->
<EnvironmentVariables Include="TargetFrameworks=$(NetCurrent)" />
<!-- Flag to remove analyzers -->
<EnvironmentVariables Include="SourceBuild=true" />
</ItemGroup>
<PropertyGroup>
<!-- Project Paths -->
<SlnPersistenceKeyFilePath>$(KeysDir)vs-solutionpersistence.snk</SlnPersistenceKeyFilePath>
<SlnPersistenceDirectory>$(ProjectDirectory)/src/Microsoft.VisualStudio.SolutionPersistence/</SlnPersistenceDirectory>
<SlnPersistenceProjectPath>$(SlnPersistenceDirectory)Microsoft.VisualStudio.SolutionPersistence.csproj</SlnPersistenceProjectPath>
<PackagesOutput>$(ProjectDirectory)bin/Packages/$(Configuration)/NuGet/</PackagesOutput>
<GlobalJsonFile>$(ProjectDirectory)/global.json</GlobalJsonFile>
<NuGetConfigFile>$(ProjectDirectory)/nuget.config</NuGetConfigFile>
<DotnetToolCommandArgs>$(DotnetToolCommandArgs) /p:Configuration=$(Configuration)</DotnetToolCommandArgs>
<DotnetToolCommandArgs>$(DotnetToolCommandArgs) /p:TreatWarningsAsErrors=false</DotnetToolCommandArgs>
<DotnetToolCommandArgs>$(DotnetToolCommandArgs) /p:AssemblyOriginatorKeyFile=$(SlnPersistenceKeyFilePath)</DotnetToolCommandArgs>
<DotnetToolCommandArgs>$(DotnetToolCommandArgs) /p:SignAssembly=true</DotnetToolCommandArgs>
<DotnetToolCommandArgs>$(DotnetToolCommandArgs) /p:PublicSign=true</DotnetToolCommandArgs>
<DotnetToolCommandArgs>$(DotnetToolCommandArgs) /p:FileVersion=$(SolutionPersistenceVersion)</DotnetToolCommandArgs>
<DotnetToolCommandArgs>$(DotnetToolCommandArgs) /p:PackageVersion=$(SolutionPersistenceVersion)</DotnetToolCommandArgs>
<BuildCommand>$(DotnetToolCommand) build $(SlnPersistenceProjectPath) /bl:build.binlog $(DotnetToolCommandArgs)</BuildCommand>
<BuildPackagesCommand>$(DotnetToolCommand) pack $(SlnPersistenceProjectPath) /bl:pack.binlog $(DotnetToolCommandArgs)</BuildPackagesCommand>
<CleanCommand>$(DotnetToolCommand) clean $(SlnPersistenceProjectPath) $(DotnetToolCommandArgs)</CleanCommand>
</PropertyGroup>
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
</Project>