File tree Expand file tree Collapse file tree 4 files changed +27
-6
lines changed Expand file tree Collapse file tree 4 files changed +27
-6
lines changed Original file line number Diff line number Diff line change 19
19
<MvvmToolkitSourceGeneratorRoslynVersion Condition =" '$(MvvmToolkitSourceGeneratorRoslynVersion)' == ''" >4.0.1</MvvmToolkitSourceGeneratorRoslynVersion >
20
20
21
21
<!-- The output path will end up being eg. "bin\Debug\roslyn4.0\netstandard2.0" (the trailing "netstandard2.0" is added automatically) -->
22
- <OutputPath >bin\$(Configuration)\roslyn$(MvvmToolkitSourceGeneratorRoslynVersion.Substring(0, 3))</OutputPath >
22
+ <OutputPath >bin\$(Configuration)\roslyn$(MvvmToolkitSourceGeneratorRoslynVersion.Substring(0, 3))\ </OutputPath >
23
23
24
24
<!-- Also define a "ROSLYN_<MAJOR>_<MINOR>" build constant, so the generator code can multi-target whenever needed and add any required polyfills -->
25
25
<DefineConstants >$(DefineConstants);ROSLYN_$(MvvmToolkitSourceGeneratorRoslynVersion.Substring(0, 3).Replace('.', '_'))</DefineConstants >
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 >
15
19
<ItemGroup >
16
20
<ProjectReference Include =" ..\..\CommunityToolkit.Mvvm\CommunityToolkit.Mvvm.csproj" />
17
- <ProjectReference Include =" ..\..\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.csproj" OutputItemType =" Analyzer" ReferenceOutputAssembly =" false" PrivateAssets =" contentfiles;build" />
21
+ <ProjectReference Include =" ..\..\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.csproj" OutputItemType =" Analyzer" ReferenceOutputAssembly =" false" PrivateAssets =" contentfiles;build" >
22
+ <Properties >MvvmToolkitSourceGeneratorRoslynVersion=$(MvvmToolkitSourceGeneratorRoslynVersion)</Properties >
23
+ </ProjectReference >
18
24
</ItemGroup >
19
25
20
26
</Project >
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
4
<TargetFrameworks >net472;netcoreapp3.1;net6.0</TargetFrameworks >
11
11
<PackageReference Include =" MSTest.TestFramework" Version =" 2.2.8" />
12
12
</ItemGroup >
13
13
14
+ <!-- See comments in CommunityToolkit.MvvmUnitTests -->
15
+ <PropertyGroup >
16
+ <MvvmToolkitSourceGeneratorRoslynVersion Condition =" '$(MvvmToolkitSourceGeneratorRoslynVersion)' == ''" >4.3.0</MvvmToolkitSourceGeneratorRoslynVersion >
17
+ </PropertyGroup >
14
18
<ItemGroup >
15
- <ProjectReference Include =" ..\..\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.csproj" />
16
19
<ProjectReference Include =" ..\..\CommunityToolkit.Mvvm\CommunityToolkit.Mvvm.csproj" />
20
+ <ProjectReference Include =" ..\..\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.csproj" >
21
+ <Properties >MvvmToolkitSourceGeneratorRoslynVersion=$(MvvmToolkitSourceGeneratorRoslynVersion)</Properties >
22
+ </ProjectReference >
17
23
</ItemGroup >
18
24
19
25
</Project >
Original file line number Diff line number Diff line change 12
12
</ItemGroup >
13
13
14
14
<ItemGroup >
15
- <ProjectReference Include =" ..\..\CommunityToolkit.Mvvm\CommunityToolkit.Mvvm.csproj" />
16
- <ProjectReference Include =" ..\..\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.csproj" OutputItemType =" Analyzer" ReferenceOutputAssembly =" false" PrivateAssets =" contentfiles;build" />
17
15
<ProjectReference Include =" ..\CommunityToolkit.Mvvm.ExternalAssembly\CommunityToolkit.Mvvm.ExternalAssembly.csproj" />
18
16
</ItemGroup >
19
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
+ <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 >
27
+ </ItemGroup >
28
+
20
29
</Project >
You can’t perform that action at this time.
0 commit comments