File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 15
15
-->
16
16
<PropertyGroup >
17
17
18
+ <!-- Set the assembly name to always be the same, regardless of the Roslyn version being targeted (cut the trailing ".RoslynXYZ" suffix) -->
19
+ <AssemblyName >$(MSBuildProjectName.Substring(0, $([MSBuild]::Subtract($(MSBuildProjectName.Length), 10))))</AssemblyName >
20
+
18
21
<!--
19
22
Get the Roslyn version to use from the name of the project importing this .props file.
20
23
All projects will use the "<PROJECT_NAME>.Roslyn<MAJOR><MINOR><PATCH>.csproj" naming scheme.
24
27
<MvvmToolkitSourceGeneratorRoslynPatchVersion >$(MSBuildProjectName.Substring($([MSBuild]::Subtract($(MSBuildProjectName.Length), 1)), 1))</MvvmToolkitSourceGeneratorRoslynPatchVersion >
25
28
<MvvmToolkitSourceGeneratorRoslynVersion >$(MvvmToolkitSourceGeneratorRoslynMajorVersion).$(MvvmToolkitSourceGeneratorRoslynMinorVersion).$(MvvmToolkitSourceGeneratorRoslynPatchVersion)</MvvmToolkitSourceGeneratorRoslynVersion >
26
29
27
- <!-- The output path will end up being eg. "bin\Debug\roslyn4.0\netstandard2.0" (the trailing "netstandard2.0" is added automatically) -->
28
- <OutputPath >bin\$(Configuration)\roslyn$(MvvmToolkitSourceGeneratorRoslynVersion.Substring(0, 3))\</OutputPath >
29
-
30
30
<!-- Also define a "ROSLYN_<MAJOR>_<MINOR>" build constant, so the generator code can multi-target whenever needed and add any required polyfills -->
31
31
<DefineConstants >$(DefineConstants);ROSLYN_$(MvvmToolkitSourceGeneratorRoslynVersion.Substring(0, 3).Replace('.', '_'))</DefineConstants >
32
32
</PropertyGroup >
Original file line number Diff line number Diff line change 58
58
Pack the source generator to the right package folders (each matching the target Roslyn version).
59
59
Roslyn will automatically load the highest version compatible with Roslyn's version in the SDK.
60
60
-->
61
- <None Include =" ..\CommunityToolkit.Mvvm.SourceGenerators\bin\$(Configuration)\roslyn4.0 \netstandard2.0\CommunityToolkit.Mvvm.SourceGenerators.dll" PackagePath =" analyzers\dotnet\roslyn4.0\cs" Pack =" true" Visible =" false" />
62
- <None Include =" ..\CommunityToolkit.Mvvm.SourceGenerators\bin\$(Configuration)\roslyn4.3 \netstandard2.0\CommunityToolkit.Mvvm.SourceGenerators.dll" PackagePath =" analyzers\dotnet\roslyn4.3\cs" Pack =" true" Visible =" false" />
61
+ <None Include =" ..\CommunityToolkit.Mvvm.SourceGenerators.Roslyn401 \bin\$(Configuration)\netstandard2.0\CommunityToolkit.Mvvm.SourceGenerators.dll" PackagePath =" analyzers\dotnet\roslyn4.0\cs" Pack =" true" Visible =" false" />
62
+ <None Include =" ..\CommunityToolkit.Mvvm.SourceGenerators.Roslyn430 \bin\$(Configuration)\netstandard2.0\CommunityToolkit.Mvvm.SourceGenerators.dll" PackagePath =" analyzers\dotnet\roslyn4.3\cs" Pack =" true" Visible =" false" />
63
63
</ItemGroup >
64
64
65
65
</Project >
You can’t perform that action at this time.
0 commit comments