From c4c0f0050906fc5436e81f224107c6ec08ccfcf1 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Fri, 27 Oct 2023 11:50:29 +0200 Subject: [PATCH] Use csproj as pack input instead of nuspec Now that sourcelink is a native part of the .NET SDK, Arcade doesn't bring sourcelink packages in anymore. Now that the cyclic package dependency is avoided, these projects don't need to use nuspecs anymore. This removes custom infrastructure and allows better source build controls. I diffed the produced packages and the content in the .NETCoreApp folder is identical (a deps.json file is added but that's recommended by msbuild for build tasks these days). The .NET Framework output is significantly different as it now includes all dependencies that aren't supplied by the MSBuild inside Visual Studio. --- eng/BuildTask.targets | 101 ++++++++++++++++++ src/Directory.Build.props | 11 +- src/Directory.Build.targets | 25 ----- .../Microsoft.Build.StandardCI.csproj | 11 +- .../Microsoft.Build.StandardCI.nuspec | 10 -- ...Microsoft.Build.Tasks.Git.UnitTests.csproj | 2 +- .../Microsoft.Build.Tasks.Git.csproj | 13 +-- .../Microsoft.Build.Tasks.Git.nuspec | 15 --- .../build/Microsoft.Build.Tasks.Git.props | 2 +- .../Microsoft.Build.Tasks.Tfvc.csproj | 13 +-- .../Microsoft.Build.Tasks.Tfvc.nuspec | 21 ---- ...ink.AzureDevOpsServer.Git.UnitTests.csproj | 2 +- ...ft.SourceLink.AzureDevOpsServer.Git.csproj | 12 +-- ...ft.SourceLink.AzureDevOpsServer.Git.nuspec | 18 ---- ...t.SourceLink.AzureDevOpsServer.Git.targets | 2 +- ...SourceLink.AzureRepos.Git.UnitTests.csproj | 2 +- ...Microsoft.SourceLink.AzureRepos.Git.csproj | 12 +-- ...Microsoft.SourceLink.AzureRepos.Git.nuspec | 18 ---- ...icrosoft.SourceLink.AzureRepos.Tfvc.csproj | 12 +-- ...icrosoft.SourceLink.AzureRepos.Tfvc.nuspec | 16 --- ...crosoft.SourceLink.AzureRepos.Tfvc.targets | 2 +- ....SourceLink.Bitbucket.Git.UnitTests.csproj | 2 +- .../Microsoft.SourceLink.Bitbucket.Git.csproj | 12 +-- .../Microsoft.SourceLink.Bitbucket.Git.nuspec | 18 ---- ...Microsoft.SourceLink.Bitbucket.Git.targets | 2 +- ...crosoft.SourceLink.Common.UnitTests.csproj | 2 +- .../Microsoft.SourceLink.Common.csproj | 13 +-- .../Microsoft.SourceLink.Common.nuspec | 14 --- .../build/Microsoft.SourceLink.Common.props | 2 +- ...oft.SourceLink.Git.IntegrationTests.csproj | 2 +- ...crosoft.SourceLink.GitHub.UnitTests.csproj | 2 +- .../Microsoft.SourceLink.GitHub.csproj | 12 +-- .../Microsoft.SourceLink.GitHub.nuspec | 18 ---- ...crosoft.SourceLink.GitLab.UnitTests.csproj | 2 +- .../Microsoft.SourceLink.GitLab.csproj | 12 +-- .../Microsoft.SourceLink.GitLab.nuspec | 18 ---- .../build/Microsoft.SourceLink.GitLab.targets | 2 +- ...crosoft.SourceLink.GitWeb.UnitTests.csproj | 2 +- .../Microsoft.SourceLink.GitWeb.csproj | 12 +-- .../Microsoft.SourceLink.GitWeb.nuspec | 18 ---- .../build/Microsoft.SourceLink.GitWeb.targets | 2 +- ...icrosoft.SourceLink.Gitea.UnitTests.csproj | 2 +- .../Microsoft.SourceLink.Gitea.csproj | 12 +-- .../Microsoft.SourceLink.Gitea.nuspec | 18 ---- .../build/Microsoft.SourceLink.Gitea.targets | 2 +- ...icrosoft.SourceLink.Gitee.UnitTests.csproj | 2 +- .../Microsoft.SourceLink.Gitee.csproj | 12 +-- .../Microsoft.SourceLink.Gitee.nuspec | 18 ---- .../build/Microsoft.SourceLink.Gitee.targets | 2 +- ...icrosoft.SourceLink.Tools.UnitTests.csproj | 2 +- src/TestUtilities/TestUtilities.csproj | 2 +- 51 files changed, 164 insertions(+), 395 deletions(-) create mode 100644 eng/BuildTask.targets delete mode 100644 src/Microsoft.Build.StandardCI/Microsoft.Build.StandardCI.nuspec delete mode 100644 src/Microsoft.Build.Tasks.Git/Microsoft.Build.Tasks.Git.nuspec delete mode 100644 src/Microsoft.Build.Tasks.Tfvc/Microsoft.Build.Tasks.Tfvc.nuspec delete mode 100644 src/SourceLink.AzureDevOpsServer.Git/Microsoft.SourceLink.AzureDevOpsServer.Git.nuspec delete mode 100644 src/SourceLink.AzureRepos.Git/Microsoft.SourceLink.AzureRepos.Git.nuspec delete mode 100644 src/SourceLink.AzureRepos.Tfvc/Microsoft.SourceLink.AzureRepos.Tfvc.nuspec delete mode 100644 src/SourceLink.Bitbucket.Git/Microsoft.SourceLink.Bitbucket.Git.nuspec delete mode 100644 src/SourceLink.Common/Microsoft.SourceLink.Common.nuspec delete mode 100644 src/SourceLink.GitHub/Microsoft.SourceLink.GitHub.nuspec delete mode 100644 src/SourceLink.GitLab/Microsoft.SourceLink.GitLab.nuspec delete mode 100644 src/SourceLink.GitWeb/Microsoft.SourceLink.GitWeb.nuspec delete mode 100644 src/SourceLink.Gitea/Microsoft.SourceLink.Gitea.nuspec delete mode 100644 src/SourceLink.Gitee/Microsoft.SourceLink.Gitee.nuspec diff --git a/eng/BuildTask.targets b/eng/BuildTask.targets new file mode 100644 index 00000000..8625774a --- /dev/null +++ b/eng/BuildTask.targets @@ -0,0 +1,101 @@ + + + + false + true + + true + + true + tools + true + $(TargetsForTfmSpecificContentInPackage);_AddBuildOutputToPackageCore;_AddBuildOutputToPackageDesktop + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + runtime + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 4407f802..2776c6ea 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -8,12 +8,9 @@ true true + + + net8.0 - - - - false - + diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index 0d0686cc..057550cd 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets @@ -11,20 +11,6 @@ - - - - - - - - - <_ProjectDefinedPackageId>$(PackageId) - *fake_packageid_for_project_$(MSBuildProjectName)* - - @@ -32,15 +18,4 @@ false - - - - $(_ProjectDefinedPackageId) - $(AssemblyName) - $(MSBuildProjectName) - - diff --git a/src/Microsoft.Build.StandardCI/Microsoft.Build.StandardCI.csproj b/src/Microsoft.Build.StandardCI/Microsoft.Build.StandardCI.csproj index ac6685ac..e40dfe69 100644 --- a/src/Microsoft.Build.StandardCI/Microsoft.Build.StandardCI.csproj +++ b/src/Microsoft.Build.StandardCI/Microsoft.Build.StandardCI.csproj @@ -2,20 +2,11 @@ netstandard2.0 - true true Standard CI targets. Standard CI msbuild targets - true - - $(NoWarn);NU5128 - true - - - + \ No newline at end of file diff --git a/src/Microsoft.Build.StandardCI/Microsoft.Build.StandardCI.nuspec b/src/Microsoft.Build.StandardCI/Microsoft.Build.StandardCI.nuspec deleted file mode 100644 index 53cef9c9..00000000 --- a/src/Microsoft.Build.StandardCI/Microsoft.Build.StandardCI.nuspec +++ /dev/null @@ -1,10 +0,0 @@ - - - - $CommonMetadataElements$ - - - $CommonFileElements$ - - - \ No newline at end of file diff --git a/src/Microsoft.Build.Tasks.Git.UnitTests/Microsoft.Build.Tasks.Git.UnitTests.csproj b/src/Microsoft.Build.Tasks.Git.UnitTests/Microsoft.Build.Tasks.Git.UnitTests.csproj index 8fccc83a..64eaec35 100644 --- a/src/Microsoft.Build.Tasks.Git.UnitTests/Microsoft.Build.Tasks.Git.UnitTests.csproj +++ b/src/Microsoft.Build.Tasks.Git.UnitTests/Microsoft.Build.Tasks.Git.UnitTests.csproj @@ -1,7 +1,7 @@  - net472;$(NetCurrent) + $(NetToolCurrent);$(NetFrameworkToolCurrent) diff --git a/src/Microsoft.Build.Tasks.Git/Microsoft.Build.Tasks.Git.csproj b/src/Microsoft.Build.Tasks.Git/Microsoft.Build.Tasks.Git.csproj index 2e0715a2..c584e706 100644 --- a/src/Microsoft.Build.Tasks.Git/Microsoft.Build.Tasks.Git.csproj +++ b/src/Microsoft.Build.Tasks.Git/Microsoft.Build.Tasks.Git.csproj @@ -1,17 +1,8 @@ - net472;$(NetMinimum);$(NetCurrent) - true - - - true - $(MSBuildProjectName).nuspec - $(OutputPath) - + $(NetToolCurrent);$(NetFrameworkToolCurrent) MSBuild tasks providing git repository information. MSBuild Tasks source control git - true - true @@ -29,4 +20,6 @@ + + diff --git a/src/Microsoft.Build.Tasks.Git/Microsoft.Build.Tasks.Git.nuspec b/src/Microsoft.Build.Tasks.Git/Microsoft.Build.Tasks.Git.nuspec deleted file mode 100644 index d66e997a..00000000 --- a/src/Microsoft.Build.Tasks.Git/Microsoft.Build.Tasks.Git.nuspec +++ /dev/null @@ -1,15 +0,0 @@ - - - - $CommonMetadataElements$ - - - $CommonFileElements$ - - - - - - - - \ No newline at end of file diff --git a/src/Microsoft.Build.Tasks.Git/build/Microsoft.Build.Tasks.Git.props b/src/Microsoft.Build.Tasks.Git/build/Microsoft.Build.Tasks.Git.props index 0f278a0b..f8171a49 100644 --- a/src/Microsoft.Build.Tasks.Git/build/Microsoft.Build.Tasks.Git.props +++ b/src/Microsoft.Build.Tasks.Git/build/Microsoft.Build.Tasks.Git.props @@ -2,6 +2,6 @@ $(MSBuildThisFileDirectory)..\tools\net472\Microsoft.Build.Tasks.Git.dll - $(MSBuildThisFileDirectory)..\tools\core\Microsoft.Build.Tasks.Git.dll + $(MSBuildThisFileDirectory)..\tools\net8.0\Microsoft.Build.Tasks.Git.dll diff --git a/src/Microsoft.Build.Tasks.Tfvc/Microsoft.Build.Tasks.Tfvc.csproj b/src/Microsoft.Build.Tasks.Tfvc/Microsoft.Build.Tasks.Tfvc.csproj index 3509bace..dac07040 100644 --- a/src/Microsoft.Build.Tasks.Tfvc/Microsoft.Build.Tasks.Tfvc.csproj +++ b/src/Microsoft.Build.Tasks.Tfvc/Microsoft.Build.Tasks.Tfvc.csproj @@ -1,18 +1,9 @@ - net472 - true + $(NetFrameworkToolCurrent) true - - - true - $(MSBuildProjectName).nuspec - $(OutputPath) - MSBuild tasks providing TFVC repository information. MSBuild Tasks TFVC source link - true - true @@ -24,4 +15,6 @@ + + diff --git a/src/Microsoft.Build.Tasks.Tfvc/Microsoft.Build.Tasks.Tfvc.nuspec b/src/Microsoft.Build.Tasks.Tfvc/Microsoft.Build.Tasks.Tfvc.nuspec deleted file mode 100644 index 05353b3f..00000000 --- a/src/Microsoft.Build.Tasks.Tfvc/Microsoft.Build.Tasks.Tfvc.nuspec +++ /dev/null @@ -1,21 +0,0 @@ - - - - $CommonMetadataElements$ - - - $CommonFileElements$ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/SourceLink.AzureDevOpsServer.Git.UnitTests/Microsoft.SourceLink.AzureDevOpsServer.Git.UnitTests.csproj b/src/SourceLink.AzureDevOpsServer.Git.UnitTests/Microsoft.SourceLink.AzureDevOpsServer.Git.UnitTests.csproj index 6930393c..b291969d 100644 --- a/src/SourceLink.AzureDevOpsServer.Git.UnitTests/Microsoft.SourceLink.AzureDevOpsServer.Git.UnitTests.csproj +++ b/src/SourceLink.AzureDevOpsServer.Git.UnitTests/Microsoft.SourceLink.AzureDevOpsServer.Git.UnitTests.csproj @@ -1,6 +1,6 @@ - net472;$(NetCurrent) + $(NetToolCurrent);$(NetFrameworkToolCurrent) diff --git a/src/SourceLink.AzureDevOpsServer.Git/Microsoft.SourceLink.AzureDevOpsServer.Git.csproj b/src/SourceLink.AzureDevOpsServer.Git/Microsoft.SourceLink.AzureDevOpsServer.Git.csproj index 6e643422..808eb5eb 100644 --- a/src/SourceLink.AzureDevOpsServer.Git/Microsoft.SourceLink.AzureDevOpsServer.Git.csproj +++ b/src/SourceLink.AzureDevOpsServer.Git/Microsoft.SourceLink.AzureDevOpsServer.Git.csproj @@ -1,16 +1,8 @@ - net472;$(NetMinimum);$(NetCurrent) - true - - - true - $(MSBuildProjectName).nuspec - $(OutputPath) - + $(NetToolCurrent);$(NetFrameworkToolCurrent) Generates source link for Azure DevOps Server (formerly known as TFS) Git repositories. MSBuild Tasks Azure DepOps Server TFS Git source link - true @@ -31,4 +23,6 @@ + + diff --git a/src/SourceLink.AzureDevOpsServer.Git/Microsoft.SourceLink.AzureDevOpsServer.Git.nuspec b/src/SourceLink.AzureDevOpsServer.Git/Microsoft.SourceLink.AzureDevOpsServer.Git.nuspec deleted file mode 100644 index 4d680825..00000000 --- a/src/SourceLink.AzureDevOpsServer.Git/Microsoft.SourceLink.AzureDevOpsServer.Git.nuspec +++ /dev/null @@ -1,18 +0,0 @@ - - - - $CommonMetadataElements$ - - - - - - - $CommonFileElements$ - - - - - - - \ No newline at end of file diff --git a/src/SourceLink.AzureDevOpsServer.Git/build/Microsoft.SourceLink.AzureDevOpsServer.Git.targets b/src/SourceLink.AzureDevOpsServer.Git/build/Microsoft.SourceLink.AzureDevOpsServer.Git.targets index ec372220..5d3207e1 100644 --- a/src/SourceLink.AzureDevOpsServer.Git/build/Microsoft.SourceLink.AzureDevOpsServer.Git.targets +++ b/src/SourceLink.AzureDevOpsServer.Git/build/Microsoft.SourceLink.AzureDevOpsServer.Git.targets @@ -2,7 +2,7 @@ <_SourceLinkAzureDevOpsServerGitAssemblyFile Condition="'$(MSBuildRuntimeType)' != 'Core'">$(MSBuildThisFileDirectory)..\tools\net472\Microsoft.SourceLink.AzureDevOpsServer.Git.dll - <_SourceLinkAzureDevOpsServerGitAssemblyFile Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\core\Microsoft.SourceLink.AzureDevOpsServer.Git.dll + <_SourceLinkAzureDevOpsServerGitAssemblyFile Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\net8.0\Microsoft.SourceLink.AzureDevOpsServer.Git.dll diff --git a/src/SourceLink.AzureRepos.Git.UnitTests/Microsoft.SourceLink.AzureRepos.Git.UnitTests.csproj b/src/SourceLink.AzureRepos.Git.UnitTests/Microsoft.SourceLink.AzureRepos.Git.UnitTests.csproj index 3c45f19f..ee716e3f 100644 --- a/src/SourceLink.AzureRepos.Git.UnitTests/Microsoft.SourceLink.AzureRepos.Git.UnitTests.csproj +++ b/src/SourceLink.AzureRepos.Git.UnitTests/Microsoft.SourceLink.AzureRepos.Git.UnitTests.csproj @@ -1,6 +1,6 @@ - net472;$(NetCurrent) + $(NetToolCurrent);$(NetFrameworkToolCurrent) diff --git a/src/SourceLink.AzureRepos.Git/Microsoft.SourceLink.AzureRepos.Git.csproj b/src/SourceLink.AzureRepos.Git/Microsoft.SourceLink.AzureRepos.Git.csproj index e8ef360d..fb1e9662 100644 --- a/src/SourceLink.AzureRepos.Git/Microsoft.SourceLink.AzureRepos.Git.csproj +++ b/src/SourceLink.AzureRepos.Git/Microsoft.SourceLink.AzureRepos.Git.csproj @@ -1,16 +1,8 @@ - net472;$(NetMinimum);$(NetCurrent) - true - - - true - $(MSBuildProjectName).nuspec - $(OutputPath) - + $(NetToolCurrent);$(NetFrameworkToolCurrent) Generates source link for Azure Repos (formerly known as VSTS) Git repositories. MSBuild Tasks Azure DevOps Repos VSTS Git source link - true @@ -31,4 +23,6 @@ + + diff --git a/src/SourceLink.AzureRepos.Git/Microsoft.SourceLink.AzureRepos.Git.nuspec b/src/SourceLink.AzureRepos.Git/Microsoft.SourceLink.AzureRepos.Git.nuspec deleted file mode 100644 index daebdb38..00000000 --- a/src/SourceLink.AzureRepos.Git/Microsoft.SourceLink.AzureRepos.Git.nuspec +++ /dev/null @@ -1,18 +0,0 @@ - - - - $CommonMetadataElements$ - - - - - - - $CommonFileElements$ - - - - - - - \ No newline at end of file diff --git a/src/SourceLink.AzureRepos.Tfvc/Microsoft.SourceLink.AzureRepos.Tfvc.csproj b/src/SourceLink.AzureRepos.Tfvc/Microsoft.SourceLink.AzureRepos.Tfvc.csproj index 5fdde5e1..3b7a5812 100644 --- a/src/SourceLink.AzureRepos.Tfvc/Microsoft.SourceLink.AzureRepos.Tfvc.csproj +++ b/src/SourceLink.AzureRepos.Tfvc/Microsoft.SourceLink.AzureRepos.Tfvc.csproj @@ -1,17 +1,9 @@ - net472 - true + $(NetFrameworkToolCurrent) true - - - true - $(MSBuildProjectName).nuspec - $(OutputPath) - Generates source link for Azure Repos (formerly known as VSTS) TFVC repositories. MSBuild Tasks Azure DevOps Repos VSTS TFVC source link - true @@ -20,4 +12,6 @@ + + diff --git a/src/SourceLink.AzureRepos.Tfvc/Microsoft.SourceLink.AzureRepos.Tfvc.nuspec b/src/SourceLink.AzureRepos.Tfvc/Microsoft.SourceLink.AzureRepos.Tfvc.nuspec deleted file mode 100644 index b2f393cb..00000000 --- a/src/SourceLink.AzureRepos.Tfvc/Microsoft.SourceLink.AzureRepos.Tfvc.nuspec +++ /dev/null @@ -1,16 +0,0 @@ - - - - $CommonMetadataElements$ - - - - - - - $CommonFileElements$ - - - - - \ No newline at end of file diff --git a/src/SourceLink.AzureRepos.Tfvc/build/Microsoft.SourceLink.AzureRepos.Tfvc.targets b/src/SourceLink.AzureRepos.Tfvc/build/Microsoft.SourceLink.AzureRepos.Tfvc.targets index 488e858b..edae0cd1 100644 --- a/src/SourceLink.AzureRepos.Tfvc/build/Microsoft.SourceLink.AzureRepos.Tfvc.targets +++ b/src/SourceLink.AzureRepos.Tfvc/build/Microsoft.SourceLink.AzureRepos.Tfvc.targets @@ -2,7 +2,7 @@ <_SourceLinkAzureReposTfvcAssemblyFile Condition="'$(MSBuildRuntimeType)' != 'Core'">$(MSBuildThisFileDirectory)..\tools\net472\Microsoft.SourceLink.AzureRepos.Tfvc.dll - <_SourceLinkAzureReposTfvcAssemblyFile Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\core\Microsoft.SourceLink.AzureRepos.Tfvc.dll + <_SourceLinkAzureReposTfvcAssemblyFile Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\net8.0\Microsoft.SourceLink.AzureRepos.Tfvc.dll diff --git a/src/SourceLink.Bitbucket.Git.UnitTests/Microsoft.SourceLink.Bitbucket.Git.UnitTests.csproj b/src/SourceLink.Bitbucket.Git.UnitTests/Microsoft.SourceLink.Bitbucket.Git.UnitTests.csproj index 37bfa6fa..99235780 100644 --- a/src/SourceLink.Bitbucket.Git.UnitTests/Microsoft.SourceLink.Bitbucket.Git.UnitTests.csproj +++ b/src/SourceLink.Bitbucket.Git.UnitTests/Microsoft.SourceLink.Bitbucket.Git.UnitTests.csproj @@ -1,6 +1,6 @@ - net472;$(NetCurrent) + $(NetToolCurrent);$(NetFrameworkToolCurrent) diff --git a/src/SourceLink.Bitbucket.Git/Microsoft.SourceLink.Bitbucket.Git.csproj b/src/SourceLink.Bitbucket.Git/Microsoft.SourceLink.Bitbucket.Git.csproj index 95b89fd1..63fe3f45 100644 --- a/src/SourceLink.Bitbucket.Git/Microsoft.SourceLink.Bitbucket.Git.csproj +++ b/src/SourceLink.Bitbucket.Git/Microsoft.SourceLink.Bitbucket.Git.csproj @@ -1,16 +1,8 @@ - net472;$(NetMinimum);$(NetCurrent) - true - - - true - $(MSBuildProjectName).nuspec - $(OutputPath) - + $(NetToolCurrent);$(NetFrameworkToolCurrent) Generates source link for Bitbucket repositories. MSBuild Tasks Bitbucket source link - true @@ -31,4 +23,6 @@ + + diff --git a/src/SourceLink.Bitbucket.Git/Microsoft.SourceLink.Bitbucket.Git.nuspec b/src/SourceLink.Bitbucket.Git/Microsoft.SourceLink.Bitbucket.Git.nuspec deleted file mode 100644 index bc900a19..00000000 --- a/src/SourceLink.Bitbucket.Git/Microsoft.SourceLink.Bitbucket.Git.nuspec +++ /dev/null @@ -1,18 +0,0 @@ - - - - $CommonMetadataElements$ - - - - - - - $CommonFileElements$ - - - - - - - \ No newline at end of file diff --git a/src/SourceLink.Bitbucket.Git/build/Microsoft.SourceLink.Bitbucket.Git.targets b/src/SourceLink.Bitbucket.Git/build/Microsoft.SourceLink.Bitbucket.Git.targets index 30791dfa..1ea9b099 100644 --- a/src/SourceLink.Bitbucket.Git/build/Microsoft.SourceLink.Bitbucket.Git.targets +++ b/src/SourceLink.Bitbucket.Git/build/Microsoft.SourceLink.Bitbucket.Git.targets @@ -2,7 +2,7 @@ <_SourceLinkBitbucketAssemblyFile Condition="'$(MSBuildRuntimeType)' != 'Core'">$(MSBuildThisFileDirectory)..\tools\net472\Microsoft.SourceLink.Bitbucket.Git.dll - <_SourceLinkBitbucketAssemblyFile Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\core\Microsoft.SourceLink.Bitbucket.Git.dll + <_SourceLinkBitbucketAssemblyFile Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\net8.0\Microsoft.SourceLink.Bitbucket.Git.dll diff --git a/src/SourceLink.Common.UnitTests/Microsoft.SourceLink.Common.UnitTests.csproj b/src/SourceLink.Common.UnitTests/Microsoft.SourceLink.Common.UnitTests.csproj index a75eb43e..55d755d9 100644 --- a/src/SourceLink.Common.UnitTests/Microsoft.SourceLink.Common.UnitTests.csproj +++ b/src/SourceLink.Common.UnitTests/Microsoft.SourceLink.Common.UnitTests.csproj @@ -1,6 +1,6 @@  - net472;$(NetCurrent) + $(NetToolCurrent);$(NetFrameworkToolCurrent) diff --git a/src/SourceLink.Common/Microsoft.SourceLink.Common.csproj b/src/SourceLink.Common/Microsoft.SourceLink.Common.csproj index 64ebcbd0..5b4755aa 100644 --- a/src/SourceLink.Common/Microsoft.SourceLink.Common.csproj +++ b/src/SourceLink.Common/Microsoft.SourceLink.Common.csproj @@ -1,17 +1,8 @@ - net472;$(NetMinimum);$(NetCurrent) - true - - - true - $(MSBuildProjectName).nuspec - $(OutputPath) - + $(NetToolCurrent);$(NetFrameworkToolCurrent) MSBuild tasks providing source control information. MSBuild Tasks source control - true - true @@ -26,4 +17,6 @@ + + diff --git a/src/SourceLink.Common/Microsoft.SourceLink.Common.nuspec b/src/SourceLink.Common/Microsoft.SourceLink.Common.nuspec deleted file mode 100644 index 85963bb2..00000000 --- a/src/SourceLink.Common/Microsoft.SourceLink.Common.nuspec +++ /dev/null @@ -1,14 +0,0 @@ - - - - $CommonMetadataElements$ - - - $CommonFileElements$ - - - - - - - \ No newline at end of file diff --git a/src/SourceLink.Common/build/Microsoft.SourceLink.Common.props b/src/SourceLink.Common/build/Microsoft.SourceLink.Common.props index 74ccdf3a..5deb4f02 100644 --- a/src/SourceLink.Common/build/Microsoft.SourceLink.Common.props +++ b/src/SourceLink.Common/build/Microsoft.SourceLink.Common.props @@ -2,7 +2,7 @@ <_MicrosoftSourceLinkCommonAssemblyFile Condition="'$(MSBuildRuntimeType)' != 'Core'">$(MSBuildThisFileDirectory)..\tools\net472\Microsoft.SourceLink.Common.dll - <_MicrosoftSourceLinkCommonAssemblyFile Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\core\Microsoft.SourceLink.Common.dll + <_MicrosoftSourceLinkCommonAssemblyFile Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\net8.0\Microsoft.SourceLink.Common.dll diff --git a/src/SourceLink.Git.IntegrationTests/Microsoft.SourceLink.Git.IntegrationTests.csproj b/src/SourceLink.Git.IntegrationTests/Microsoft.SourceLink.Git.IntegrationTests.csproj index f17a92da..c03bd7a8 100644 --- a/src/SourceLink.Git.IntegrationTests/Microsoft.SourceLink.Git.IntegrationTests.csproj +++ b/src/SourceLink.Git.IntegrationTests/Microsoft.SourceLink.Git.IntegrationTests.csproj @@ -1,6 +1,6 @@ - net472;$(NetCurrent) + $(NetToolCurrent);$(NetFrameworkToolCurrent) diff --git a/src/SourceLink.GitHub.UnitTests/Microsoft.SourceLink.GitHub.UnitTests.csproj b/src/SourceLink.GitHub.UnitTests/Microsoft.SourceLink.GitHub.UnitTests.csproj index 5ffb5b92..02b7a11d 100644 --- a/src/SourceLink.GitHub.UnitTests/Microsoft.SourceLink.GitHub.UnitTests.csproj +++ b/src/SourceLink.GitHub.UnitTests/Microsoft.SourceLink.GitHub.UnitTests.csproj @@ -1,6 +1,6 @@ - net472;$(NetCurrent) + $(NetToolCurrent);$(NetFrameworkToolCurrent) diff --git a/src/SourceLink.GitHub/Microsoft.SourceLink.GitHub.csproj b/src/SourceLink.GitHub/Microsoft.SourceLink.GitHub.csproj index 7130e1f7..d4e8d453 100644 --- a/src/SourceLink.GitHub/Microsoft.SourceLink.GitHub.csproj +++ b/src/SourceLink.GitHub/Microsoft.SourceLink.GitHub.csproj @@ -1,16 +1,8 @@ - net472;$(NetMinimum);$(NetCurrent) - true - - - true - $(MSBuildProjectName).nuspec - $(OutputPath) - + $(NetToolCurrent);$(NetFrameworkToolCurrent) Generates source link for GitHub repositories. MSBuild Tasks GitHub source link - true @@ -31,4 +23,6 @@ + + diff --git a/src/SourceLink.GitHub/Microsoft.SourceLink.GitHub.nuspec b/src/SourceLink.GitHub/Microsoft.SourceLink.GitHub.nuspec deleted file mode 100644 index ed8fe9f3..00000000 --- a/src/SourceLink.GitHub/Microsoft.SourceLink.GitHub.nuspec +++ /dev/null @@ -1,18 +0,0 @@ - - - - $CommonMetadataElements$ - - - - - - - $CommonFileElements$ - - - - - - - \ No newline at end of file diff --git a/src/SourceLink.GitLab.UnitTests/Microsoft.SourceLink.GitLab.UnitTests.csproj b/src/SourceLink.GitLab.UnitTests/Microsoft.SourceLink.GitLab.UnitTests.csproj index d939220e..0dfd6337 100644 --- a/src/SourceLink.GitLab.UnitTests/Microsoft.SourceLink.GitLab.UnitTests.csproj +++ b/src/SourceLink.GitLab.UnitTests/Microsoft.SourceLink.GitLab.UnitTests.csproj @@ -1,6 +1,6 @@ - net472;$(NetCurrent) + $(NetToolCurrent);$(NetFrameworkToolCurrent) diff --git a/src/SourceLink.GitLab/Microsoft.SourceLink.GitLab.csproj b/src/SourceLink.GitLab/Microsoft.SourceLink.GitLab.csproj index 3e9373d5..c36b2224 100644 --- a/src/SourceLink.GitLab/Microsoft.SourceLink.GitLab.csproj +++ b/src/SourceLink.GitLab/Microsoft.SourceLink.GitLab.csproj @@ -1,16 +1,8 @@ - net472;$(NetMinimum);$(NetCurrent) - true - - - true - $(MSBuildProjectName).nuspec - $(OutputPath) - + $(NetToolCurrent);$(NetFrameworkToolCurrent) Generates source link for GitLab repositories. MSBuild Tasks GitLab source link - true @@ -30,4 +22,6 @@ + + diff --git a/src/SourceLink.GitLab/Microsoft.SourceLink.GitLab.nuspec b/src/SourceLink.GitLab/Microsoft.SourceLink.GitLab.nuspec deleted file mode 100644 index 27e937f2..00000000 --- a/src/SourceLink.GitLab/Microsoft.SourceLink.GitLab.nuspec +++ /dev/null @@ -1,18 +0,0 @@ - - - - $CommonMetadataElements$ - - - - - - - $CommonFileElements$ - - - - - - - \ No newline at end of file diff --git a/src/SourceLink.GitLab/build/Microsoft.SourceLink.GitLab.targets b/src/SourceLink.GitLab/build/Microsoft.SourceLink.GitLab.targets index ecf48155..0efed498 100644 --- a/src/SourceLink.GitLab/build/Microsoft.SourceLink.GitLab.targets +++ b/src/SourceLink.GitLab/build/Microsoft.SourceLink.GitLab.targets @@ -2,7 +2,7 @@ <_SourceLinkGitLabAssemblyFile Condition="'$(MSBuildRuntimeType)' != 'Core'">$(MSBuildThisFileDirectory)..\tools\net472\Microsoft.SourceLink.GitLab.dll - <_SourceLinkGitLabAssemblyFile Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\core\Microsoft.SourceLink.GitLab.dll + <_SourceLinkGitLabAssemblyFile Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\net8.0\Microsoft.SourceLink.GitLab.dll diff --git a/src/SourceLink.GitWeb.UnitTests/Microsoft.SourceLink.GitWeb.UnitTests.csproj b/src/SourceLink.GitWeb.UnitTests/Microsoft.SourceLink.GitWeb.UnitTests.csproj index 06e7b03b..bb38e214 100644 --- a/src/SourceLink.GitWeb.UnitTests/Microsoft.SourceLink.GitWeb.UnitTests.csproj +++ b/src/SourceLink.GitWeb.UnitTests/Microsoft.SourceLink.GitWeb.UnitTests.csproj @@ -1,6 +1,6 @@ - net472;$(NetCurrent) + $(NetToolCurrent);$(NetFrameworkToolCurrent) diff --git a/src/SourceLink.GitWeb/Microsoft.SourceLink.GitWeb.csproj b/src/SourceLink.GitWeb/Microsoft.SourceLink.GitWeb.csproj index c322f662..b79c52bd 100644 --- a/src/SourceLink.GitWeb/Microsoft.SourceLink.GitWeb.csproj +++ b/src/SourceLink.GitWeb/Microsoft.SourceLink.GitWeb.csproj @@ -1,16 +1,8 @@ - net472;$(NetMinimum);$(NetCurrent) - true - - - true - $(MSBuildProjectName).nuspec - $(OutputPath) - + $(NetToolCurrent);$(NetFrameworkToolCurrent) Generates source link for Git repositories using a GitWeb server. MSBuild Tasks GitWeb source link - true @@ -32,4 +24,6 @@ + + diff --git a/src/SourceLink.GitWeb/Microsoft.SourceLink.GitWeb.nuspec b/src/SourceLink.GitWeb/Microsoft.SourceLink.GitWeb.nuspec deleted file mode 100644 index 265f8361..00000000 --- a/src/SourceLink.GitWeb/Microsoft.SourceLink.GitWeb.nuspec +++ /dev/null @@ -1,18 +0,0 @@ - - - - $CommonMetadataElements$ - - - - - - - $CommonFileElements$ - - - - - - - diff --git a/src/SourceLink.GitWeb/build/Microsoft.SourceLink.GitWeb.targets b/src/SourceLink.GitWeb/build/Microsoft.SourceLink.GitWeb.targets index 13f8d211..3c963f56 100644 --- a/src/SourceLink.GitWeb/build/Microsoft.SourceLink.GitWeb.targets +++ b/src/SourceLink.GitWeb/build/Microsoft.SourceLink.GitWeb.targets @@ -2,7 +2,7 @@ <_SourceLinkGitWebAssemblyFile Condition="'$(MSBuildRuntimeType)' != 'Core'">$(MSBuildThisFileDirectory)..\tools\net472\Microsoft.SourceLink.GitWeb.dll - <_SourceLinkGitWebAssemblyFile Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\core\Microsoft.SourceLink.GitWeb.dll + <_SourceLinkGitWebAssemblyFile Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\net8.0\Microsoft.SourceLink.GitWeb.dll diff --git a/src/SourceLink.Gitea.UnitTests/Microsoft.SourceLink.Gitea.UnitTests.csproj b/src/SourceLink.Gitea.UnitTests/Microsoft.SourceLink.Gitea.UnitTests.csproj index 3b53bf33..a53bd2b1 100644 --- a/src/SourceLink.Gitea.UnitTests/Microsoft.SourceLink.Gitea.UnitTests.csproj +++ b/src/SourceLink.Gitea.UnitTests/Microsoft.SourceLink.Gitea.UnitTests.csproj @@ -1,6 +1,6 @@ - net472;$(NetCurrent) + $(NetToolCurrent);$(NetFrameworkToolCurrent) diff --git a/src/SourceLink.Gitea/Microsoft.SourceLink.Gitea.csproj b/src/SourceLink.Gitea/Microsoft.SourceLink.Gitea.csproj index 8904abb2..ff2bac67 100644 --- a/src/SourceLink.Gitea/Microsoft.SourceLink.Gitea.csproj +++ b/src/SourceLink.Gitea/Microsoft.SourceLink.Gitea.csproj @@ -1,16 +1,8 @@ - net472;$(NetMinimum);$(NetCurrent) - true - - - true - $(MSBuildProjectName).nuspec - $(OutputPath) - + $(NetToolCurrent);$(NetFrameworkToolCurrent) Generates source link for Gitea repositories. MSBuild Tasks Gitea source link - true @@ -30,4 +22,6 @@ + + diff --git a/src/SourceLink.Gitea/Microsoft.SourceLink.Gitea.nuspec b/src/SourceLink.Gitea/Microsoft.SourceLink.Gitea.nuspec deleted file mode 100644 index 2019d3ca..00000000 --- a/src/SourceLink.Gitea/Microsoft.SourceLink.Gitea.nuspec +++ /dev/null @@ -1,18 +0,0 @@ - - - - $CommonMetadataElements$ - - - - - - - $CommonFileElements$ - - - - - - - \ No newline at end of file diff --git a/src/SourceLink.Gitea/build/Microsoft.SourceLink.Gitea.targets b/src/SourceLink.Gitea/build/Microsoft.SourceLink.Gitea.targets index dd71dd04..14078471 100644 --- a/src/SourceLink.Gitea/build/Microsoft.SourceLink.Gitea.targets +++ b/src/SourceLink.Gitea/build/Microsoft.SourceLink.Gitea.targets @@ -2,7 +2,7 @@ <_SourceLinkGiteaAssemblyFile Condition="'$(MSBuildRuntimeType)' != 'Core'">$(MSBuildThisFileDirectory)..\tools\net472\Microsoft.SourceLink.Gitea.dll - <_SourceLinkGiteaAssemblyFile Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\core\Microsoft.SourceLink.Gitea.dll + <_SourceLinkGiteaAssemblyFile Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\net8.0\Microsoft.SourceLink.Gitea.dll diff --git a/src/SourceLink.Gitee.UnitTests/Microsoft.SourceLink.Gitee.UnitTests.csproj b/src/SourceLink.Gitee.UnitTests/Microsoft.SourceLink.Gitee.UnitTests.csproj index 56fd1b43..77b36252 100644 --- a/src/SourceLink.Gitee.UnitTests/Microsoft.SourceLink.Gitee.UnitTests.csproj +++ b/src/SourceLink.Gitee.UnitTests/Microsoft.SourceLink.Gitee.UnitTests.csproj @@ -1,6 +1,6 @@ - net472;$(NetCurrent) + $(NetToolCurrent);$(NetFrameworkToolCurrent) diff --git a/src/SourceLink.Gitee/Microsoft.SourceLink.Gitee.csproj b/src/SourceLink.Gitee/Microsoft.SourceLink.Gitee.csproj index 61d7dac9..56fa806a 100644 --- a/src/SourceLink.Gitee/Microsoft.SourceLink.Gitee.csproj +++ b/src/SourceLink.Gitee/Microsoft.SourceLink.Gitee.csproj @@ -1,16 +1,8 @@ - net472;$(NetMinimum);$(NetCurrent) - true - - - true - $(MSBuildProjectName).nuspec - $(OutputPath) - + $(NetToolCurrent);$(NetFrameworkToolCurrent) Generates source link for Gitee repositories. MSBuild Tasks Gitee source link - true @@ -31,4 +23,6 @@ + + diff --git a/src/SourceLink.Gitee/Microsoft.SourceLink.Gitee.nuspec b/src/SourceLink.Gitee/Microsoft.SourceLink.Gitee.nuspec deleted file mode 100644 index ea8040bf..00000000 --- a/src/SourceLink.Gitee/Microsoft.SourceLink.Gitee.nuspec +++ /dev/null @@ -1,18 +0,0 @@ - - - - $CommonMetadataElements$ - - - - - - - $CommonFileElements$ - - - - - - - \ No newline at end of file diff --git a/src/SourceLink.Gitee/build/Microsoft.SourceLink.Gitee.targets b/src/SourceLink.Gitee/build/Microsoft.SourceLink.Gitee.targets index f5b331ce..7fe216fa 100644 --- a/src/SourceLink.Gitee/build/Microsoft.SourceLink.Gitee.targets +++ b/src/SourceLink.Gitee/build/Microsoft.SourceLink.Gitee.targets @@ -2,7 +2,7 @@ <_SourceLinkGiteeAssemblyFile Condition="'$(MSBuildRuntimeType)' != 'Core'">$(MSBuildThisFileDirectory)..\tools\net472\Microsoft.SourceLink.Gitee.dll - <_SourceLinkGiteeAssemblyFile Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\core\Microsoft.SourceLink.Gitee.dll + <_SourceLinkGiteeAssemblyFile Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\net8.0\Microsoft.SourceLink.Gitee.dll diff --git a/src/SourceLink.Tools.UnitTests/Microsoft.SourceLink.Tools.UnitTests.csproj b/src/SourceLink.Tools.UnitTests/Microsoft.SourceLink.Tools.UnitTests.csproj index 0550598c..a4bea88e 100644 --- a/src/SourceLink.Tools.UnitTests/Microsoft.SourceLink.Tools.UnitTests.csproj +++ b/src/SourceLink.Tools.UnitTests/Microsoft.SourceLink.Tools.UnitTests.csproj @@ -1,6 +1,6 @@  - net472;$(NetCurrent) + $(NetToolCurrent);$(NetFrameworkToolCurrent) diff --git a/src/TestUtilities/TestUtilities.csproj b/src/TestUtilities/TestUtilities.csproj index 2154ed09..13138f07 100644 --- a/src/TestUtilities/TestUtilities.csproj +++ b/src/TestUtilities/TestUtilities.csproj @@ -1,6 +1,6 @@  - net472;$(NetCurrent) + $(NetToolCurrent);$(NetFrameworkToolCurrent) false true false