From 0a5da187e09584e82389be95657c5a44d8fceaca Mon Sep 17 00:00:00 2001 From: William Li Date: Tue, 15 Sep 2020 21:26:58 -0700 Subject: [PATCH] Add VSTemplateLocator package --- eng/Versions.props | 1 + .../VSTemplateLocator.csproj | 39 +++++++++++++++++++ src/redist/redist.csproj | 1 + src/redist/targets/GenerateMSIs.targets | 24 +++++++++++- ...mmon.Net.Core.SDK.VSTemplateLocator.nuspec | 18 +++++++++ 5 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 src/VSTemplateLocator/VSTemplateLocator.csproj create mode 100644 src/redist/targets/packaging/windows/clisdk/VS.Redist.Common.Net.Core.SDK.VSTemplateLocator.nuspec diff --git a/eng/Versions.props b/eng/Versions.props index 7034feb82..f9fd4bb2b 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -58,6 +58,7 @@ 5.0.100-rc.2.20466.5 $(MicrosoftNETSdkPackageVersion) $(MicrosoftNETSdkPackageVersion) + $(MicrosoftNETSdkPackageVersion) diff --git a/src/VSTemplateLocator/VSTemplateLocator.csproj b/src/VSTemplateLocator/VSTemplateLocator.csproj new file mode 100644 index 000000000..348b13fb5 --- /dev/null +++ b/src/VSTemplateLocator/VSTemplateLocator.csproj @@ -0,0 +1,39 @@ + + + + $(CoreSdkTargetFramework) + false + false + false + false + UNUSED + true + + + + + + + + + + + + + + + + <_VSTemplateLocatorSrc Include="$(Pkgruntime_win-x86_Microsoft_NETCore_DotNetHostResolver)\runtimes\win-x86\native\hostfxr.dll" Arch="x86\" /> + <_VSTemplateLocatorSrc Include="$(Pkgruntime_win-x64_Microsoft_NETCore_DotNetHostResolver)\runtimes\win-x64\native\hostfxr.dll" Arch="x64\" /> + <_VSTemplateLocatorSrc Include="$(Pkgmicrosoft_dotnet_templateLocator)\lib\net472\**\*.dll" Arch="" /> + <_VSTemplateLocatorDst Include="@(_VSTemplateLocatorSrc->'$(OutputPath)VSTemplateLocator\%(Arch)%(RecursiveDir)%(Filename)%(Extension)')" /> + + + + + + diff --git a/src/redist/redist.csproj b/src/redist/redist.csproj index 35c3d4ad9..e3b39487a 100644 --- a/src/redist/redist.csproj +++ b/src/redist/redist.csproj @@ -12,6 +12,7 @@ /> + diff --git a/src/redist/targets/GenerateMSIs.targets b/src/redist/targets/GenerateMSIs.targets index 307808e57..49c5f54f2 100644 --- a/src/redist/targets/GenerateMSIs.targets +++ b/src/redist/targets/GenerateMSIs.targets @@ -46,6 +46,10 @@ $(ArtifactsNonShippingPackagesDir)VS.Redist.Common.Net.Core.SDK.MSBuildExtensions.$(FullNugetVersion).nupkg $(ArtifactsNonShippingPackagesDir)VS.Redist.Common.Net.Core.SDK.MSBuildExtensions.swr + $(ArtifactsDir)bin/VSTemplateLocator/Debug + $(MSBuildThisFileDirectory)packaging/windows/clisdk/VS.Redist.Common.Net.Core.SDK.VSTemplateLocator.nuspec + $(ArtifactsNonShippingPackagesDir)VS.Redist.Common.Net.Core.SDK.VSTemplateLocator.$(FullNugetVersion).nupkg + $(ArtifactsObjDir)/LightCommandPackages @@ -531,6 +535,23 @@ + + + + + + diff --git a/src/redist/targets/packaging/windows/clisdk/VS.Redist.Common.Net.Core.SDK.VSTemplateLocator.nuspec b/src/redist/targets/packaging/windows/clisdk/VS.Redist.Common.Net.Core.SDK.VSTemplateLocator.nuspec new file mode 100644 index 000000000..6b60dae86 --- /dev/null +++ b/src/redist/targets/packaging/windows/clisdk/VS.Redist.Common.Net.Core.SDK.VSTemplateLocator.nuspec @@ -0,0 +1,18 @@ + + + + VS.Redist.Common.Net.Core.SDK.VSTemplateLocator + 1.0.0 + VS.Redist.Common.Net.Core.SDK.VSTemplateLocator + Microsoft + Microsoft + https://www.microsoft.com/net/dotnet_library_license.htm + https://github.com/dotnet/core-sdk + true + MSBuild extensions bundled with .NET Core SDK for internal Visual Studio build consumption + © Microsoft Corporation. All rights reserved. + + + + +