-
-
Notifications
You must be signed in to change notification settings - Fork 970
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix batch file * Update Program.cs * Fix type of framework parameter * Fix docs * Set consoleApp=true by default * Remove outdated info. The parameter was changed in #1632 * Update docs
- Loading branch information
1 parent
17df128
commit dc3cefd
Showing
6 changed files
with
181 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
dotnet build -c Release BenchmarkDotNet.Templates.csproj | ||
dotnet pack -c Release BenchmarkDotNet.Templates.csproj | ||
dotnet new -u BenchmarkDotNet.Templates | ||
dotnet new -i BenchmarkDotNet.Templates::0.0.0-* --nuget-source .\bin\Release\ | ||
:: Run only from the folder where the batch file 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. | ||
:: | ||
:: https://stackoverflow.com/questions/47450531/batch-write-output-of-dir-to-a-variable | ||
for /f "delims=" %%a in ('dir /s /b BenchmarkDotNet.Templates*.nupkg') do set "nupkg_path=%%a" | ||
|
||
dotnet new --uninstall "BenchmarkDotNet.Templates" | ||
dotnet new --install "%nupkg_path%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters