-
Notifications
You must be signed in to change notification settings - Fork 6
fix(net8): build net8 with net48 #145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| NEW_RELEASE_VERSION ?= 0.0.1 | ||
|
|
||
|
|
||
| build-Grasshopper: | ||
| dotnet build ./src/Ironbug.Grasshopper/Ironbug.Grasshopper.csproj /p:Configuration=Release /p:Platform=x64 /p:Version=$(NEW_RELEASE_VERSION) /restore | ||
| mkdir -p installer/plugin | ||
| mv src/Ironbug.Grasshopper/bin/x64/Release/net8-windows/* installer/plugin/ | ||
| mv src/Ironbug.Grasshopper/bin/x64/Release/net48/* installer/plugin/net48/ | ||
| mkdir -p installer/HVACTemplates | ||
| cp doc/HVAC_GHTemplates/* installer/HVACTemplates -r | ||
|
|
||
| ls installer -r | ||
|
|
||
| build-console-win: | ||
| dotnet build ./src/Ironbug.Console/Ironbug.Console.csproj /p:Configuration=Release /p:Platform=x64 /p:Version=$(NEW_RELEASE_VERSION) /restore | ||
| ls ./src/Ironbug.Console/bin/x64/Release/ | ||
| 7z a -tzip ironbug.console.win.zip ./src/Ironbug.Console/bin/x64/Release | ||
| rm ./src/Ironbug.Console/bin/x64/Release/net48/openstudio* -r | ||
| rm ./src/Ironbug.Console/bin/x64/Release/net8/openstudio* -r | ||
|
Comment on lines
+18
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While placing options after file arguments is valid for GNU |
||
|
|
||
| cp ./src/Ironbug.Console/bin/x64/Release/net8/* installer/plugin | ||
| cp ./src/Ironbug.Console/bin/x64/Release/net48/* installer/plugin/net48/ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
|
|
||
| 7z a -tzip installer/plugin/net48.zip ./installer/plugin/net48/* | ||
| rm -r installer/plugin/net48 | ||
|
|
||
| build-console-linux: | ||
| dotnet build ./src/Ironbug.Console/Ironbug.Console.csproj -a x64 /p:Configuration=Release /p:TargetFramework=net8 /p:Version=$(NEW_RELEASE_VERSION) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This Specifically:
|
||
| ls ./src/Ironbug.Console/bin/Release/linux-x64/net8 | ||
| zip -r ironbug.console.linux.zip ./src/Ironbug.Console/bin/Release/linux-x64/net8 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This
mvcommand will fail because the destination directoryinstaller/plugin/net48/is not created beforehand. You should create the directory before moving files into it.