Open angularsen opened 4 years ago
Aha, typing this all out helped me figure it out.
I am trying this out inside my c:\dev\unitsnet
project.
In that project, there is a Directory.Build.props
file with
<!-- Avoid sharing obj folder with multiple .csproj files in same folder -->
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)obj/$(MSBuildProjectName)</BaseIntermediateOutputPath>
<OutputPath>$(MSBuildThisFileDirectory)Artifacts/$(MSBuildProjectName)</OutputPath>
Workaround
Add these to my Try.csproj
to override the defaults back to normal output paths.
<OutputPath>bin</OutputPath>
<BaseIntermediateOutputPath>obj</BaseIntermediateOutputPath>
Any idea why this breaks the tool? Might be worth investigating.
The reason we added this config was that we at some point had multiple .csproj
files in the same folder, but we have since removed that so I can remove the BaseIntermediateOutputPath
in my props file and voila - I no longer need any of the lines in the workaround.
Turns out I had to add <OutputPath>bin/$(Configuration)</OutputPath>
to my Try.csproj
, as logs complained it could not find Try.dll
. Revised the title of this issue to reflect this.
I am no longer blocked, so you can close it for me, but keeping it open in case you want to look into the case of custom output paths not being supported.
Describe the bug
From CMD or git for windows bash:
Errors on 2nd or more attempts:
Workaround
I tried cloning the try-samples repo, but I cannot reproduce there. I have tried spotting the difference between my .csproj, Program.cs and markdown files and those at try-samples repo, but I can't find anything that stands out.
.NET info:
Did this error occur while using
dotnet try
or online?dotnet-try
What kind of error was it?
dotnet-try
toolScreenshots
If applicable, add screenshots to help explain your problem.
Please complete the following:
These issues seem related: https://github.com/dotnet/try/issues/181 https://github.com/dotnet/try/issues/191#issuecomment-492531292