2

Fody Costura を無効にする方法はありますか? トラブルシューティングを行う必要があり、Fody Costura が問題の一部ではないことを知りたい. 1つの解決策となるナゲットを削除するのではなく、無効にすることをお勧めします。

<Costura/>他のウィーバーを使用していないため、Fody 構成から削除すると、次のエラーが発生します。

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

4

5 に答える 5

4

はい、コメントアウトするか、<Costura />行を削除できますFodyWeavers.xml

于 2015-10-15T13:30:49.090 に答える
3

.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">
于 2016-09-30T13:56:10.443 に答える