fix dotnet run for example projects on a freshly-cloned repository#294
Conversation
|
i can't reproduce |
You can try going to a fresh branch, be sure you stash all changes, clean, try running example. It reproduces the issue for me all the time. If you still cannot reproduce, please share |
|
Feels like a misconfiguration on source generator target folder... RazorConsole/Directory.Build.props Line 24 in e685796 Could you share .binlog so we can see where the source generated code lives. The example project default to .net9 so I wonder if the generated code also lives under '.net10' folder instead of net10 |
|
|
@Marcin-Lach I can reproduce, the command I run is It seems to because of the timing when The fix can be simply also set |
Overwritten the PR with your suggestion. |
Move
EmitCompilerGeneratedFilesintoSetCompilerGeneratedFilesPathtarget.Without this, if you try to run any example on a freshly-cloned repo with
dotnet run --project .\examples\FileExplorer\ --framework "net10.0", you will fail because of a missing folder