question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

$(Version) is defined only in the per-TFM build

See original GitHub issue

The 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:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nguerreracommented, Oct 13, 2016

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.

0reactions
rohit21agrawalcommented, Oct 13, 2016

@nguerrera that worked! thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found