-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Make dotnet publish
use Release
by default in 8.0+ Projects
#29155
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
Merged
nagilson
merged 74 commits into
dotnet:main
from
nagilson:nagilson-publish-release-default
Jan 27, 2023
Merged
Changes from all commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
fef73a3
First attempt at implementing default release behavior
nagilson b897115
Basic case is working.
nagilson 1657da1
Add test for failing if conflicting (need asset) AND fix logic
nagilson 0d5d088
Improve test quality
nagilson 0ed140f
Update the name of some publish release and pack release related strings
nagilson d67c269
Move the pack error to a place where it'll actually trigger and fix r…
nagilson f2d81f0
Remove the publishsinglefileError that I somehow added -- don't know …
nagilson de55192
Make tests that demonstrate the new default behavior
nagilson 0b7520e
Add test for pack release multi-targeting. Publishing with multi-targ…
nagilson 954ce09
Use simple identifier for the test
nagilson d0dcfa1
Use specialized asserts instead of asset.true
nagilson e7d07d2
Simplify a pack release test identifier
nagilson 8be1cbd
use path.combine instead of string concat in pack release test
nagilson 9e6e28e
Respond to some basic pr feedback about tests and tmp files
nagilson 390f985
Respond to all of the 'nits' before the more substantive issues
nagilson 890169f
Consider multi-targeted projects with inherit implicit p*release conf…
nagilson be3728c
[WIP] Add test infra code to create test solutions
nagilson 7d897c7
Clean-up test code regarding TestSolution.cs
nagilson 65e819c
Merge remote-tracking branch 'primary/main' into nagilson-publish-rel…
nagilson cc99dc5
Merge with main
nagilson e2616d8
Fail even if P*Release not defined, and enable PackRelease regardless…
nagilson b303257
[WIP] check the target framework in a better way
nagilson cb7f0b1
Move PublishRelease default to a new area so it can be picked up in p…
nagilson 983e49e
Update solution tests to use correct identifier syntax
nagilson 09e53a5
Merge branch 'nagilson-publish-release-default' of https://github.com…
nagilson 12557b8
Do PublishRelease error only if IsPublishing so we don't fail VS publish
nagilson d140c91
Make it so the P*Release errors dont occur if env-var opt out enabled.
nagilson aac4107
Cleanup code and add the names of a TON of edge cases in tests with m…
nagilson 025aec4
Make the code build before finishing tests
nagilson 57844da
Merge remote-tracking branch 'primary/main' into nagilson-publish-rel…
nagilson 2f0fcc2
update xlf post merge of PR and ILLink error conflict
nagilson e36427a
Update tests and fix bug where the solution arbitrary project not def…
nagilson 98fa0e6
Consider that the filepath of project is not a fullpath
nagilson 3a3d4a0
[WIP] Fix some of the newly added PublishRelease tests
nagilson 2f7c1d3
Merge branch 'main' into nagilson-publish-release-default
nagilson 1bb42a1
.WithTargetframeworks uses Targetframeworks instead of TargetFramewor…
nagilson 466b909
Fix a bug I added trying to simplify code where publish command parse…
nagilson ec10854
CONSIDER: 1 Project Turns Into 9 Evaluations With Pack Multitarget ->…
nagilson ccda58c
Make publish tests with Debug hardcoded use Release. Code cleanup.
nagilson 0638edc
Fix some more tests expecting publish debug
nagilson 44b2397
Clean-up publishrelease default code again before review, anticipatin…
nagilson 1fc9949
Make error message not say use Directory.Build.props because it doesn…
nagilson b3a342e
Remove quotes from error message
nagilson eb32cf3
UCR test to use release config instead of debug
nagilson bfd1f90
PublishRelease only affects publish test change
nagilson 80b58d5
Fix solution handling code to not undefine properties if not set
nagilson 0447d59
Fix some crappy code in .net tool pack test per @dsplaisted where mul…
nagilson f3fc8d6
Revert back to the old error message
nagilson c301b25
[!] Change the design to be slower but break less customers.
nagilson 66b69bb
Update one remaining test to reflect new change that fails less often
nagilson be4ef83
Respond to PR feedback and add the slow and fast way as a flag
nagilson 90ed485
Merge remote-tracking branch 'primary/main' into nagilson-publish-rel…
nagilson baa0905
Remove test with the old environment variable idea.
nagilson d94f360
Remove the test solution files and update tests
nagilson 59abc25
Clean up remaining tests with removed solution file gunk code that ca…
nagilson 2523195
Improve comment clarity by removing TFM and making it TargetFramework
nagilson 9803137
Respond to PR feedback -> improve comments regarding PublishRelease, …
nagilson 168a0dd
Merge branch 'nagilson-publish-release-default' of https://github.com…
nagilson 47a78ee
Make a comment point to what MSBuild code it is relying oon
nagilson 693546c
Use Assert.Equal instead of Assert.True ==
nagilson af4eb20
Use Path.Combine instead of str + str
nagilson ebf7fea
Remove the "v" that was supposed to be a down arrow in the comment
nagilson fda2de8
Update parameter name to reflect the pass by reference default of C#
nagilson d057474
Be clear that Configuration > PublishRelease or PackRelease in the er…
nagilson 66e4967
Check that FileInfo exists instead of using Assert.True(File.Exists..…
nagilson a353113
Do FileInfo asserts because they give the path if they fail
nagilson 51e4385
Fix a small typo in the test name
nagilson 951e941
Use Tuples with named elements instead of a Tuple<K, V>
nagilson 0c7d76f
Use named tuples over Tuple<>
nagilson 26e5f57
Respond to PR feedback to improve code quality
nagilson 71902de
Merge branch 'nagilson-publish-release-default' of https://github.com…
nagilson 905b44b
Update XLF
nagilson 3d70802
Respond to PR feedback to improve test code quality for publishrelease
nagilson d6e4e38
Remove the / in a test that would fail because paths in linux are dif…
nagilson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.