csharpfritz / InstantAPIs

A library that generates Minimal API endpoints for an Entity Framework context.
MIT License
448 stars 57 forks source link

编译缺少文件 #54

Closed zhangning123798 closed 2 years ago

zhangning123798 commented 2 years ago

image

gldraphael commented 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 
zhangning123798 commented 2 years ago

image

Stelzi79 commented 2 years ago

The error is in English CS0016: Could not write to output file (or what I could find about it).

zhangning123798 commented 2 years ago

这个文件不在解决方案中,是如何生成得,为什么不能写入输出文件,找不到这个文件

gldraphael commented 2 years ago

The *.sourcelink.json file is autogenerated. More about source-linking here.

image

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" />
zhangning123798 commented 2 years ago

多谢,解决了

csharpfritz commented 2 years ago

Closing with a work-around