Skip to content

Commit

Permalink
pass runtime version to test commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Tyukalov committed Sep 27, 2024
1 parent 07ec326 commit c6b3ce1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/dir.proj
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
</Target>

<Target Name="TestL0" DependsOnTargets="GenerateConstant">
<Exec Command="dotnet build Test/Test.csproj -c $(BUILDCONFIG) /p:PackageRuntime=$(PackageRuntime) /p:SelfContained=false /p:TargetFramework=$(TargetFramework)" ConsoleToMSBuild="true" />
<Exec Command="dotnet build Test/Test.csproj /t:CopyFilesL0 /p:TargetFramework=$(TargetFramework)" Condition="'$(PackageRuntime)' == 'win-x86'"/>
<Exec Command="dotnet build Test/Test.csproj -c $(BUILDCONFIG) /p:PackageRuntime=$(PackageRuntime) /p:SelfContained=false /p:TargetFramework=$(TargetFramework) /p:RuntimeFrameworkVersion=$(RuntimeFrameworkVersion)" ConsoleToMSBuild="true" />
<Exec Command="dotnet build Test/Test.csproj /t:CopyFilesL0 /p:TargetFramework=$(TargetFramework) /p:RuntimeFrameworkVersion=$(RuntimeFrameworkVersion)" Condition="'$(PackageRuntime)' == 'win-x86'"/>
<Exec Command="dotnet test Test/Test.csproj --settings $(MSBuildProjectDirectory)/Test/CodeCoverage.runsettings --no-build --logger:trx --collect:&quot;Code Coverage&quot; --filter &quot;$(TestFilters)&quot; /p:PackageRuntime=$(PackageRuntime) /p:TargetFramework=$(TargetFramework)" ConsoleToMSBuild="true" />
</Target>

Expand All @@ -100,9 +100,9 @@
StopOnFirstFailure="true"
Properties="Configuration=$(BUILDCONFIG);PackageRuntime=$(PackageRuntime);Version=1.0.0.0;RuntimeIdentifier=$(PackageRuntime);PublishDir=$(L1Root)/bin" />

<Exec Command="dotnet build Test/Test.csproj -c $(BUILDCONFIG) /p:PackageRuntime=$(PackageRuntime) /p:SelfContained=false /p:TargetFramework=$(TargetFramework) /p:RuntimeVersion=$(RuntimeVersion) -o $(L1Root)/bin" ConsoleToMSBuild="true" />
<Exec Command="dotnet build Test/Test.csproj /t:CopyFilesL1 /p:TargetFramework=$(TargetFramework)" Condition="'$(PackageRuntime)' == 'win-x86'"/>
<Exec Command="dotnet test Test/Test.csproj /p:TargetFramework=$(TargetFramework) -o $(L1Root)/bin --no-build --logger:trx --verbosity=detailed --filter &quot;$(TestFilters)&quot;" ConsoleToMSBuild="true" />
<Exec Command="dotnet build Test/Test.csproj -c $(BUILDCONFIG) /p:PackageRuntime=$(PackageRuntime) /p:SelfContained=false /p:TargetFramework=$(TargetFramework) /p:RuntimeFrameworkVersion=$(RuntimeFrameworkVersion) -o $(L1Root)/bin" ConsoleToMSBuild="true" />
<Exec Command="dotnet build Test/Test.csproj /t:CopyFilesL1 /p:TargetFramework=$(TargetFramework) /p:RuntimeFrameworkVersion=$(RuntimeFrameworkVersion)" Condition="'$(PackageRuntime)' == 'win-x86'"/>
<Exec Command="dotnet test Test/Test.csproj /p:TargetFramework=$(TargetFramework) /p:RuntimeFrameworkVersion=$(RuntimeFrameworkVersion) -o $(L1Root)/bin --no-build --logger:trx --verbosity=detailed --filter &quot;$(TestFilters)&quot;" ConsoleToMSBuild="true" />
</Target>

<Target Name="Layout" DependsOnTargets="Clean;Build">
Expand Down

0 comments on commit c6b3ce1

Please sign in to comment.