From af55190212bea88204d90bcec251b241a00e03dc Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Thu, 8 Aug 2024 17:47:10 -0700 Subject: [PATCH] Refactor bundled .targets --- ...munityToolkit.Mvvm.FeatureSwitches.targets | 3 + ...unityToolkit.Mvvm.SourceGenerators.targets | 149 +++++++++++++++++ .../CommunityToolkit.Mvvm.csproj | 37 ++++- .../CommunityToolkit.Mvvm.targets | 154 +----------------- 4 files changed, 195 insertions(+), 148 deletions(-) create mode 100644 src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.FeatureSwitches.targets create mode 100644 src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.SourceGenerators.targets diff --git a/src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.FeatureSwitches.targets b/src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.FeatureSwitches.targets new file mode 100644 index 00000000..4de98b5c --- /dev/null +++ b/src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.FeatureSwitches.targets @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.SourceGenerators.targets b/src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.SourceGenerators.targets new file mode 100644 index 00000000..aa4b8966 --- /dev/null +++ b/src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.SourceGenerators.targets @@ -0,0 +1,149 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @(MVVMToolkitCurrentCompilerAssemblyIdentity->'%(Version)') + + + true + + + + + + + + + + + + + + true + + + + + + + + + roslyn4.3 + roslyn4.0 + + + + + + + + + + + + + + true + + + + + + + + + + true + + + + + + + \ No newline at end of file diff --git a/src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.csproj b/src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.csproj index 2c1f713e..e682aa43 100644 --- a/src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.csproj +++ b/src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.csproj @@ -91,11 +91,41 @@ - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - @(MVVMToolkitCurrentCompilerAssemblyIdentity->'%(Version)') - - - true - - - - - - - - - - - - - - true - - - - - - - - - roslyn4.3 - roslyn4.0 - - - - - - - - - - - - - - true - - - - - - - - - - true - - - - - + + + <_CommunityToolkitMvvmFeatureSwitchesTargets>$(MSBuildThisFileDirectory)CommunityToolkit.Mvvm.FeatureSwitches.targets + <_CommunityToolkitMvvmSourceGeneratorsTargets>$(MSBuildThisFileDirectory)CommunityToolkit.Mvvm.SourceGenerators.targets + + + + + \ No newline at end of file