Skip to content

fix Could not find a part of the path … bin\roslyn\csc.exe, VS2017#1

Open
UseMuse wants to merge 1 commit into
sudipta-chaudhari:masterfrom
UseMuse:CouldNotFindPartPath_bin_roslyn_csc_exe
Open

fix Could not find a part of the path … bin\roslyn\csc.exe, VS2017#1
UseMuse wants to merge 1 commit into
sudipta-chaudhari:masterfrom
UseMuse:CouldNotFindPartPath_bin_roslyn_csc_exe

Conversation

@UseMuse
Copy link
Copy Markdown

@UseMuse UseMuse commented Jun 27, 2019

Add this code in your .csproj file:

<Target Name="CopyRoslynFiles" AfterTargets="AfterBuild" Condition="!$(Disable_CopyWebApplication) And '$(OutDir)' != '$(OutputPath)'">
    <ItemGroup>
      <RoslynFiles Include="$(CscToolPath)\*" />
    </ItemGroup>
    <MakeDir Directories="$(WebProjectOutputDir)\bin\roslyn" />
    <Copy SourceFiles="@(RoslynFiles)" DestinationFolder="$(WebProjectOutputDir)\bin\roslyn" SkipUnchangedFiles="true" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" />
</Target>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant