File tree Expand file tree Collapse file tree 5 files changed +11
-32
lines changed
Expand file tree Collapse file tree 5 files changed +11
-32
lines changed Original file line number Diff line number Diff line change 4343 <!-- Reference the various multi-targeted versions of the source generator project (one per Roslyn version) -->
4444 <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0'" >
4545 <ProjectReference Include =" ..\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.csproj" ReferenceOutputAssembly =" false" >
46- <Properties >MvvmToolkitSourceGeneratorRoslynVersion=4.0.1;MvvmToolkitIsGeneratingNuGetPackage=true</Properties >
46+ <AdditionalProperties >MvvmToolkitSourceGeneratorRoslynVersion=4.0.1;MvvmToolkitIsGeneratingNuGetPackage=true</AdditionalProperties >
4747 </ProjectReference >
4848 <ProjectReference Include =" ..\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.csproj" ReferenceOutputAssembly =" false" >
49- <Properties >MvvmToolkitSourceGeneratorRoslynVersion=4.3.0;MvvmToolkitIsGeneratingNuGetPackage=true</Properties >
49+ <AdditionalProperties >MvvmToolkitSourceGeneratorRoslynVersion=4.3.0;MvvmToolkitIsGeneratingNuGetPackage=true</AdditionalProperties >
5050 </ProjectReference >
5151 </ItemGroup >
5252
Original file line number Diff line number Diff line change @@ -46,13 +46,13 @@ jobs:
4646 - script : dotnet test -c Release -f net6.0 -l "trx;LogFileName=VSTestResults_net6.0.trx"
4747 displayName : Run .NET 6 unit tests
4848
49- # Run the .NET 6 MVVM Toolkit tests targeting Roslyn 4.0.1
50- - script : dotnet test tests\CommunityToolkit.Mvvm.UnitTests\CommunityToolkit.Mvvm.UnitTests.csproj -c Release -f net6.0 -p:MvvmToolkitSourceGeneratorRoslynVersion=4.0.1 -l "trx;LogFileName=VSTestResults_net6.0_mvvmtoolkit_roslyn401 .trx"
51- displayName : Run CommunityToolkit.Mvvm.UnitTests unit tests with Roslyn 4.0.1
49+ # Run the .NET 6 MVVM Toolkit tests targeting Roslyn 4.3.0
50+ - script : dotnet test tests\CommunityToolkit.Mvvm.UnitTests\CommunityToolkit.Mvvm.UnitTests.csproj -c Release -f net6.0 -p:MvvmToolkitSourceGeneratorRoslynVersion=4.3.0 -l "trx;LogFileName=VSTestResults_net6.0_mvvmtoolkit_roslyn430 .trx"
51+ displayName : Run CommunityToolkit.Mvvm.UnitTests unit tests with Roslyn 4.3.0
5252
53- # Run the .NET 6 MVVM Toolkit source generator tests targeting Roslyn 4.0.1
54- - script : dotnet test tests\CommunityToolkit.Mvvm.SourceGenerators.UnitTests\CommunityToolkit.Mvvm.SourceGenerators.UnitTests.csproj -c Release -f net6.0 -p:MvvmToolkitSourceGeneratorRoslynVersion=4.0.1 -l "trx;LogFileName=VSTestResults_net6.0_mvvmtoolkit_generators_roslyn401 .trx"
55- displayName : Run CommunityToolkit.Mvvm.SourceGenerators.UnitTests unit tests with Roslyn 4.0.1
53+ # Run the .NET 6 MVVM Toolkit source generator tests targeting Roslyn 4.3.0
54+ - script : dotnet test tests\CommunityToolkit.Mvvm.SourceGenerators.UnitTests\CommunityToolkit.Mvvm.SourceGenerators.UnitTests.csproj -c Release -f net6.0 -p:MvvmToolkitSourceGeneratorRoslynVersion=4.3.0 -l "trx;LogFileName=VSTestResults_net6.0_mvvmtoolkit_generators_roslyn430 .trx"
55+ displayName : Run CommunityToolkit.Mvvm.SourceGenerators.UnitTests unit tests with Roslyn 4.3.0
5656
5757 # Run .NET Core 3.1 tests
5858 - script : dotnet test -c Release -f netcoreapp3.1 -l "trx;LogFileName=VSTestResults_netcoreapp3.1.trx"
Original file line number Diff line number Diff line change 1212 <NoWarn >$(NoWarn);CS8002;SA0001</NoWarn >
1313 </PropertyGroup >
1414
15- <!-- See comments in CommunityToolkit.MvvmUnitTests -->
16- <PropertyGroup >
17- <MvvmToolkitSourceGeneratorRoslynVersion Condition =" '$(MvvmToolkitSourceGeneratorRoslynVersion)' == ''" >4.3.0</MvvmToolkitSourceGeneratorRoslynVersion >
18- </PropertyGroup >
1915 <ItemGroup >
2016 <ProjectReference Include =" ..\..\CommunityToolkit.Mvvm\CommunityToolkit.Mvvm.csproj" />
21- <ProjectReference Include =" ..\..\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.csproj" OutputItemType =" Analyzer" ReferenceOutputAssembly =" false" PrivateAssets =" contentfiles;build" >
22- <Properties >MvvmToolkitSourceGeneratorRoslynVersion=$(MvvmToolkitSourceGeneratorRoslynVersion)</Properties >
23- </ProjectReference >
17+ <ProjectReference Include =" ..\..\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.csproj" OutputItemType =" Analyzer" ReferenceOutputAssembly =" false" PrivateAssets =" contentfiles;build" />
2418 </ItemGroup >
2519
2620</Project >
Original file line number Diff line number Diff line change 1212 <PackageReference Include =" MSTest.TestFramework" Version =" 2.2.8" />
1313 </ItemGroup >
1414
15- <!-- See comments in CommunityToolkit.MvvmUnitTests -->
16- <PropertyGroup >
17- <MvvmToolkitSourceGeneratorRoslynVersion Condition =" '$(MvvmToolkitSourceGeneratorRoslynVersion)' == ''" >4.3.0</MvvmToolkitSourceGeneratorRoslynVersion >
18- </PropertyGroup >
1915 <ItemGroup >
2016 <ProjectReference Include =" ..\..\CommunityToolkit.Mvvm\CommunityToolkit.Mvvm.csproj" />
21- <ProjectReference Include =" ..\..\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.csproj" >
22- <Properties >MvvmToolkitSourceGeneratorRoslynVersion=$(MvvmToolkitSourceGeneratorRoslynVersion)</Properties >
23- </ProjectReference >
17+ <ProjectReference Include =" ..\..\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.csproj" />
2418 </ItemGroup >
2519
2620</Project >
Original file line number Diff line number Diff line change 1313
1414 <ItemGroup >
1515 <ProjectReference Include =" ..\CommunityToolkit.Mvvm.ExternalAssembly\CommunityToolkit.Mvvm.ExternalAssembly.csproj" />
16- </ItemGroup >
17-
18- <!-- Since the MVVM Toolkit generator uses multi-targeting for Roslyn versions, we also want to test all of them here -->
19- <PropertyGroup >
20- <MvvmToolkitSourceGeneratorRoslynVersion Condition =" '$(MvvmToolkitSourceGeneratorRoslynVersion)' == ''" >4.3.0</MvvmToolkitSourceGeneratorRoslynVersion >
21- </PropertyGroup >
22- <ItemGroup >
2316 <ProjectReference Include =" ..\..\CommunityToolkit.Mvvm\CommunityToolkit.Mvvm.csproj" />
24- <ProjectReference Include =" ..\..\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.csproj" OutputItemType =" Analyzer" ReferenceOutputAssembly =" false" PrivateAssets =" contentfiles;build" >
25- <Properties >MvvmToolkitSourceGeneratorRoslynVersion=$(MvvmToolkitSourceGeneratorRoslynVersion)</Properties >
26- </ProjectReference >
17+ <ProjectReference Include =" ..\..\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.csproj" OutputItemType =" Analyzer" ReferenceOutputAssembly =" false" PrivateAssets =" contentfiles;build" />
2718 </ItemGroup >
2819
2920</Project >
You can’t perform that action at this time.
0 commit comments