New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Files generated during precompile do not get added to compilation #6596
Comments
I am trying to use the precompile script to generate some files and have the same issue, the first compile they aren't included. I'm using 1.0.0-preview2-003121. |
This is also an issue for embedding files which are created during precompile. For example: project.json
or on Windows:
Program.cs
Output Expected Output Version: 1.0.0-preview2-003121 |
I confirm the issue, with |
This looks like a duplicate of https://github.com/dotnet/cli/issues/1475 to me. That issue mentions a possible workaround: have dummy files that get overwritten by the precompile scripts. This is working for me. I doubt that this will get fixed, with the planned move to MSBuild-based builds. (Though I work for Microsoft, I'm not associated with this project.) |
This will work with preview3. |
Steps to reproduce
Consider a project.json with a scripts node like so
Referencing
Test.Foo
does not work in the first compile when the file is not on disk. Having an empty Test.cs which gets populated duringprecompile
works. It looks like the build is calculating the set of files to compile earlier than precompile. Perhaps it needs to do it after?dotnet --info
output:1.0.0-preview3-003150
The text was updated successfully, but these errors were encountered: