Closed zhangning123798 closed 2 years ago
Can you reproduce this on the command line? (google translate: 你能在命令行上重现这个吗?)
git clone https://github.com/csharpfritz/InstantAPIs.git
cd InstantAPIs
dotnet build
The error is in English CS0016: Could not write to output file
(or what I could find about it).
这个文件不在解决方案中,是如何生成得,为什么不能写入输出文件,找不到这个文件
The *.sourcelink.json
file is autogenerated. More about source-linking here.
A temporary workaround would be to disable source-linking by removing the following lines from Fritz.InstantAPIs.csproj
:
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
多谢,解决了
Closing with a work-around