$(Version) is defined only in the per-TFM build
See original GitHub issueThe Version
property is defined in https://github.com/dotnet/sdk/blob/3c6c1f3c00472a76e82466400b7314e3416dc469/src/Tasks/Microsoft.NETCore.Build.Tasks/build/netstandard1.0/Microsoft.NETCore.Sdk.targets#L48-L51 but that’s only included in the “inner” build.
For NuGet pack, it’s needed in the cross-targeting build.
@rohit21agrawal ran into this.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Mix of .netstandard2.0 and .netframework47 DLLs in nuget ...
NET Standard. I very strongly recommend at the very least creating one package per TFM, or recompiling all the assemblies to use the...
Read more >How can I build a project with multiple .net frameworks for ...
Every version when I create I have to build multiple .net frameworks and use these dll's for the nuget package. Is there a...
Read more >Why (La)TeX can not work with true type fonts?
The number of glyphs in a font. pdftex can handle only 256 glyphs per tfm. So if the font has more glyphs you...
Read more >Inter-Intra Agency Agreement Handbook
(2) Grants, cooperative agreements, or loans defined as Federal financial assistance under the Federal Grant and Cooperative Act of 1977, ...
Read more >SAP Configuration Guide for the Standard Financial ...
Version. Publication Date. Author. Description of Change ... A3 Each Main Account Code must be associated with only one Fund Type Code.
Read more >Top Related Medium Post
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The problem is that the pack targets are imported before the sdk targets (because SDK depends on pack and not vice versa). You will have to defer evaluation of $(Version) until the pack target runs.
@nguerrera that worked! thanks!