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.

PP file output is not generated during the build

See original GitHub issue

PP file output is not being generated during the build.

Steps

  1. dotnet new
  2. dotnet add package contentfilesexample -v 1.0.2
  3. dotnet restore
  4. Add to Program.cs Console.WriteLine(ExampleReader.GetDataText());
  5. dotnet build

Expected

ExampleReader will be in the current namespace from the pp file.

Actual

ExampleReader does not exist

Originally reported here https://github.com/NuGet/Home/issues/4803 //cc @damianh

From @natidea

I took a look at the pp file transformation issue and found a couple of things:

    <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>

Now I can use the Guard.

So somewhere along the way, some concepts may have been crossed. We default CopyLocalLockFileAssemblies to true in that target file, but it gets set to false in Microsoft.NET.Sdk.BeforeCommon.targets#L57. Perhaps the real issue is that the produce content assets task is tied to ResolveLockFileCopyLocalProjectDeps and should instead be triggered in some other way.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:32 (15 by maintainers)

github_iconTop GitHub Comments

6reactions
mynkowcommented, Aug 16, 2017

Please move this to milestone: 2.1.0

4reactions
adamralphcommented, May 31, 2018

@ahmoh I’d argue that the ability to edit the source code of the package was a problem with the old system. What happens when a new version of the package is released? Editing the code is effectively forking the package. Source code packages are the wrong mechanism to distribute code which is intended to be edited. You should be using templates for that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build input file cannot be found {PATH} did you forget to ...
Seems like you have moved bridging file to other folder and Xcode compiler can not find it. Try to move this file in...
Read more >
Build failing with "command failed to write the following ...
Failed because this command failed to write the following output files: Library/Bee/artifacts/MacStandalonePlayerBuildProgram/Features/Assembly- ...
Read more >
PDF not created after compilation - TeX
The first line of the log says: preloaded format=latex 2019.1.17. The last line says. Output written on main.dvi (112 pages, 306844 bytes).
Read more >
Tests wont run from build output folder when using ...
When i run my test using my run settings file. It keeps wanting to run the test from the test results folder instead...
Read more >
output file can not be generated in ccs - TI E2E
Problem does not occur when we try to build from control suite but it does not generate .out file when tries to do...
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