有没有办法禁用Fody Costura?我需要执行一些故障排除,我想知道Fody Costura不是问题的一部分。我更喜欢禁用它,而不是删除nuget,这将是一种解决方案。
从Fody配置中删除<Costura/>
会给出以下错误,因为我没有使用任何其他编织器:
Fody: No configured weavers. It is possible you have not installed a weaver or have installed a fody weaver nuget into a project type that does not support install.ps1. You may need to add that weaver to FodyWeavers.xml manually. eg. <Weavers><WeaverName/></Weavers>. see https://github.com/Fody/Fody/wiki/SampleUsage
发布于 2015-10-15 21:30:49
是的,您可以从FodyWeavers.xml
中注释掉或删除<Costura />
行
发布于 2015-12-07 01:34:18
AFAIK,没有办法关闭Costura,但您可以手动排除所有引用:
<Costura>
<ExcludeAssemblies>
Foo
Bar
</ExcludeAssemblies>
</Costura>
请注意,它不包含.dll
/.exe
扩展(它是Foo
而不是Foo.dll
)
此外,如果要嵌入本机/非托管dll,请确保将这些库的生成操作切换为None
欲了解更多信息,请访问:https://github.com/Fody/Costura#excludeassemblies
发布于 2016-09-30 21:56:10
打开.csproj文件,搜索"fody",然后删除包含它的所有标签。比如
<Error Condition="!Exists('..\packages\Fody.1.29.4\build\dotnet\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.1.29.4\build\dotnet\Fody.targets'))" />
</Target>
<Import Project="..\packages\Fody.1.29.4\build\dotnet\Fody.targets" Condition="Exists('..\packages\Fody.1.29.4\build\dotnet\Fody.targets')" />
这些都在这个标签之后
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
https://stackoverflow.com/questions/33149431
复制相似问题