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 43
43
<!-- Reference the various multi-targeted versions of the source generator project (one per Roslyn version) -->
44
44
<ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0'" >
45
45
<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 >
47
47
</ProjectReference >
48
48
<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 >
50
50
</ProjectReference >
51
51
</ItemGroup >
52
52
Original file line number Diff line number Diff line change @@ -46,13 +46,13 @@ jobs:
46
46
- script : dotnet test -c Release -f net6.0 -l "trx;LogFileName=VSTestResults_net6.0.trx"
47
47
displayName : Run .NET 6 unit tests
48
48
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
52
52
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
56
56
57
57
# Run .NET Core 3.1 tests
58
58
- 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 12
12
<NoWarn >$(NoWarn);CS8002;SA0001</NoWarn >
13
13
</PropertyGroup >
14
14
15
- <!-- See comments in CommunityToolkit.MvvmUnitTests -->
16
- <PropertyGroup >
17
- <MvvmToolkitSourceGeneratorRoslynVersion Condition =" '$(MvvmToolkitSourceGeneratorRoslynVersion)' == ''" >4.3.0</MvvmToolkitSourceGeneratorRoslynVersion >
18
- </PropertyGroup >
19
15
<ItemGroup >
20
16
<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" />
24
18
</ItemGroup >
25
19
26
20
</Project >
Original file line number Diff line number Diff line change 12
12
<PackageReference Include =" MSTest.TestFramework" Version =" 2.2.8" />
13
13
</ItemGroup >
14
14
15
- <!-- See comments in CommunityToolkit.MvvmUnitTests -->
16
- <PropertyGroup >
17
- <MvvmToolkitSourceGeneratorRoslynVersion Condition =" '$(MvvmToolkitSourceGeneratorRoslynVersion)' == ''" >4.3.0</MvvmToolkitSourceGeneratorRoslynVersion >
18
- </PropertyGroup >
19
15
<ItemGroup >
20
16
<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" />
24
18
</ItemGroup >
25
19
26
20
</Project >
Original file line number Diff line number Diff line change 13
13
14
14
<ItemGroup >
15
15
<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 >
23
16
<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" />
27
18
</ItemGroup >
28
19
29
20
</Project >
You can’t perform that action at this time.
0 commit comments