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.

How to use calculated version(s) to pre-process files in the build?

See original GitHub issue

In my scenario I have a repo that contains some projects that represent NuGet packages with DLLs, plus some .NET CLI template packages that have projects that need to reference the build NuGet packages. Because the NuGet package versions are generated dynamically (thanks, NerdBank! 😄), I figured I need to use $(NuGetPackageVersion) to process my template files and get that version injected into them.

I figure one strategy is to have a file such as templates\.template.config\template.json.in (note the .in extension) that has text REPLACE_VERSION in it, then with an MSBuild target that runs at a suitable time, replace REPLACE_VERSION with $(NuGetPackageVersion) and save the file as templates\.template.config\template.json, and let the build continue with the substituted values.

Does anyone know any guidance or sample of how to do this?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
paulomorgadocommented, Nov 18, 2019

When I want to see what happened in MSBuild: http://www.msbuildlog.com/

0reactions
Eiloncommented, Nov 19, 2019

This post is old but it seemed to match what I saw (I think): https://github.com/Microsoft/msbuild/issues/2890

I’m running .NET Core 3.0 and 3.1, but I’m not sure which I was using when I got the error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working with preprocessing layers | TensorFlow Core
Some preprocessing layers have an internal state that can be computed based on a sample of the training data. The list of stateful...
Read more >
6.3. Preprocessing data
This class implements the Transformer API to compute the mean and standard deviation on a training set so as to be able to...
Read more >
Preprocessing with sklearn: a complete and ...
To give our code some meaning, we'll create a very small data set with three features and five samples. The data contains obvious...
Read more >
How do I see a C/C++ source file after preprocessing in ...
Then right-click on the file in the Solution Explorer and select "Compile". The preprocessed file is created in the output directory (e.g. ...
Read more >
Preprocessing and Postprocessing - Amazon SageMaker
Use preprocessing scripts when you need to transform the inputs to your model monitor. For example, suppose the output of your model is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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