diff --git a/build/common.props b/build/common.props index c2844cce61..f47bf45b13 100644 --- a/build/common.props +++ b/build/common.props @@ -62,4 +62,28 @@ all + + + + + + + + + + + + + + + + + diff --git a/templates/BenchmarkDotNet.Templates.csproj b/templates/BenchmarkDotNet.Templates.csproj index 9daf0672f8..407c2398f2 100644 --- a/templates/BenchmarkDotNet.Templates.csproj +++ b/templates/BenchmarkDotNet.Templates.csproj @@ -24,4 +24,25 @@ + + + + + + + + \ No newline at end of file diff --git a/templates/install-from-source.sh b/templates/install-from-source.sh new file mode 100755 index 0000000000..d33889da3d --- /dev/null +++ b/templates/install-from-source.sh @@ -0,0 +1,13 @@ +# Run only from the folder where the shell script is located! + +dotnet build BenchmarkDotNet.Templates.csproj -c Release +dotnet pack BenchmarkDotNet.Templates.csproj -c Release + +# If we install the templates via a folder path, then it will have a different ID (ID=folder path). +# It will conflict with BDN templates from nuget. +# We need to install the templates via a FILE path in order to update the template from nuget. + +nupkg_path=$(find . -name "BenchmarkDotNet.Templates*.nupkg") + +dotnet new uninstall "BenchmarkDotNet.Templates" +dotnet new install $nupkg_path