Repository navigation
Set version early enough not to be overridden by winfx targets on desktop - #819
Merged
Merged
Conversation
This prevents a conflict with Version being set to 1.0.0.0 by desktop targets before we have a chance to set it to 1.0.0, which was breaking restore. It also breaks VersionPrefix for net4x projects built with desktop msbuild. Also leaving VersionPrefix unset if we do not use it.
srivatsn
approved these changes
Feb 4, 2017
Contributor
|
Tagging @MattGertz for approval. |
eerhardt
approved these changes
Feb 4, 2017
| } | ||
|
|
||
| var testAsset = _testAssetsManager | ||
| .CopyTestAsset("HelloWorld", identifier: targetFramework) |
Member
There was a problem hiding this comment.
Does the identifier need to be unique by itself? Or is something else appended to it to make it unique.
If it has to be unique, just the TFM probably isn't enough.
Contributor
Author
There was a problem hiding this comment.
It is appended to the caller member name.
nil4
reviewed
Feb 4, 2017
| <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> | ||
| </PropertyGroup> | ||
|
|
||
| <Import Project="$(MSBuildThisFileDriectory)Microsoft.NET.DefaultAssemblyInfo.targets" /> |
Contributor
Author
There was a problem hiding this comment.
Good catch. I guess imports are already relative to current dir, this is unnecessary and evaluating to empty, which still works. I'll correct the typo and keep it this way for consistency but we should probably remove the unnecessary uses of MSBuildThisFileDirectory for readability at some point.
Member
|
@dotnet-bot test this please |
This was benign because imports are already relative to the importing project and the misspelling of MSBuildThisFileDirectory evaluated to empty.
dsplaisted
approved these changes
Feb 5, 2017
Contributor
|
Approved offline |
mmitche
pushed a commit
to mmitche/sdk
that referenced
this pull request
Jun 5, 2020
Adding support for publishing via YAML Stages
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Customer scenario
Fix #814
Fix #422
Fix #93
Workarounds, if any
None for VersionPrefix not working on net4x.
For the others, specify an explicit Version in your .csproj
Risk
Low.
Performance impact
None
Is this a regression from a previous update?
The nuget restore may have worked before but the version prefix issue has always existed. The fix is the same for both.
Root cause analysis:
Missing test coverage for version prefix using desktop msbuild (added with PR).
How was the bug found?
Dogfooding and customer reported
@srivatsn @dsplaisted @eerhardt @dotnet/project-system