File tree Expand file tree Collapse file tree 4 files changed +15
-36
lines changed
System.CommandLine.Suggest.Tests
System.CommandLine.Suggest Expand file tree Collapse file tree 4 files changed +15
-36
lines changed Original file line number Diff line number Diff line change 1313 <PackageReference Include =" xunit.runner.visualstudio" />
1414 </ItemGroup >
1515
16+ <Target Name =" PublishAfterBuild"
17+ AfterTargets =" Build"
18+ DependsOnTargets =" Publish"
19+ Condition =" '$(PublishAfterBuild)' == 'true'" />
20+
1621</Project >
Original file line number Diff line number Diff line change 77 <PropertyGroup >
88 <OutputType >Exe</OutputType >
99 <TargetFramework >$(TargetFrameworkForNETSDK)</TargetFramework >
10+ <RuntimeIdentifiers >win-x64;linux-x64;osx-x64</RuntimeIdentifiers >
1011 </PropertyGroup >
1112
1213</Project >
Original file line number Diff line number Diff line change 1616 <ItemGroup >
1717 <ProjectReference Include =" ..\System.CommandLine.Suggest\dotnet-suggest.csproj" />
1818 <ProjectReference Include =" ..\System.CommandLine.Tests\System.CommandLine.Tests.csproj" />
19- </ItemGroup >
20-
21- <Target Name =" DotnetSuggestIntegrationTestAssets" BeforeTargets =" Build" Condition =" '$(Configuration)' == 'Release'" >
22- <PropertyGroup >
23- <TestAssetsPath >$([System.IO.Path]::GetFullPath('$(OutputPath)'))/TestAssets</TestAssetsPath >
24- </PropertyGroup >
25-
26- <PropertyGroup Condition =" '$(OS)' == 'Windows_NT'" >
27- <Rid >win-x64</Rid >
28- </PropertyGroup >
29-
30- <PropertyGroup Condition =" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'" >
31- <Rid >osx-x64</Rid >
32- </PropertyGroup >
3319
34- <PropertyGroup Condition =" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'" >
35- <Rid >linux-x64</Rid >
36- </PropertyGroup >
37-
38- <MSBuild BuildInParallel =" False" Projects =" ../System.CommandLine.Suggest/dotnet-suggest.csproj" Targets =" Restore" Properties =" UseAppHost=true;SelfContained=false;RuntimeIdentifier=$(Rid);ForceRestoreToEvaluateSeparately=1;Configuration=Release" />
39-
40- <MSBuild BuildInParallel =" False" Projects =" ../System.CommandLine.Suggest/dotnet-suggest.csproj" Targets =" Build;Publish" Properties =" UseAppHost=true;SelfContained=false;RuntimeIdentifier=$(Rid);PublishDir=$(TestAssetsPath);Configuration=Release" />
41-
42- <MSBuild BuildInParallel =" False" Projects =" EndToEndTestApp/EndToEndTestApp.csproj" Targets =" Restore" Properties =" UseAppHost=true;SelfContained=false;RuntimeIdentifier=$(Rid);ForceRestoreToEvaluateSeparately=1;Configuration=Release" />
43-
44- <MSBuild BuildInParallel =" False" Projects =" EndToEndTestApp/EndToEndTestApp.csproj" Targets =" Build;Publish" Properties =" UseAppHost=true;SelfContained=false;RuntimeIdentifier=$(Rid);PublishDir=$(TestAssetsPath);Configuration=Release" />
45- </Target >
20+ <!-- Sequence into build to make sure that publish assets are available for tests. -->
21+ <ProjectReference Include =" EndToEndTestApp/EndToEndTestApp.csproj;
22+ ../System.CommandLine.Suggest/dotnet-suggest.csproj"
23+ AdditionalProperties =" SelfContained=false;RuntimeIdentifier=$(NETCoreSdkPortableRuntimeIdentifier);PublishDir=$(OutputPath)/TestAssets;PublishAfterBuild=true"
24+ ReferenceOutputAssembly =" false" />
25+ </ItemGroup >
4626
4727</Project >
Original file line number Diff line number Diff line change 1818
1919 <PropertyGroup >
2020 <!-- No warning for the scripts, it is part of the content, not to execuate-->
21- <NoWarn >$(NoWarn);NU5110;NU5111; </NoWarn >
21+ <NoWarn >$(NoWarn);NU5110;NU5111</NoWarn >
2222 </PropertyGroup >
2323
24-
24+ <!-- Remove the PublishDir global property to avoid System.CommandLine being built twice with different global properties (race condition). -->
2525 <ItemGroup >
26- <ProjectReference Include =" ..\System.CommandLine\System.CommandLine.csproj" />
26+ <ProjectReference Include =" ..\System.CommandLine\System.CommandLine.csproj" GlobalPropertiesToRemove = " PublishDir;PublishAfterBuild " />
2727 </ItemGroup >
2828
2929 <ItemGroup >
4141 </Content >
4242 </ItemGroup >
4343
44- <!-- Workaround https://github.com/dotnet/arcade/issues/2233 -->
45- <Target Name =" _InitializeAssemblyVersion" BeforeTargets =" GetAssemblyVersion" >
46- <PropertyGroup >
47- <FileVersion ></FileVersion >
48- </PropertyGroup >
49- </Target >
50-
5144</Project >
You can’t perform that action at this time.
0 commit comments