농심짜*_*파게티 4 exe fody fody-costura
(使用翻译器。)我正在使用 Costura 和 Fody 制作一个 exe 文件。但是,如果缺少 dll 文件,则无法运行。我的 Visual Studio 中有一个警告。警告:
FodyPackageReference Fody: The package reference for Costura.Fody is missing the 'compile' part in the IncludeAssets setting; it's recommended to completely remove IncludeAssets
我也有这个警告。但它对我来说很好。因此,导致您的问题的不是警告。
在我看来,可能是因为 costura 版本不适合您的项目。你可以试试旧版本。
至于我,我的项目使用 .net framework 4.6,最新的 costura.fody 5.3 对我不起作用。但是 5.2 工作正常。
以及如何删除警告:( 编辑 csproj 文件)
<ItemGroup>
<PackageReference Include="Costura.Fody">
<Version>5.2.0</Version>
<!--<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>-->
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
776 次 |
| 最近记录: |