如何解决成功构建后的重新编译错误
我当前的问题是我想使用ILRepack将我所有需要的“参考”合并到一个.exe中,但无法按预期工作。
当前在我的项目中使用C#.NET 4.8,我有3个要合并的.dll。 .exe本身可以工作,但是IRL不会重新打包它们。 小小的便笺,我只是以x64“格式”发布/调试我的.exe,因此为什么一切都设置为该格式,但这不应该是问题:/
就像在尝试重新包装时崩溃一样。
我当前的.csproj aka MSBuildTask(仅应在构建“发布”时触发。)
for i in perperson:
i.update(peremail_t[i['id']])
我收到的错误(+1个警告):
<Target Name="ILRepack" AfterTargets="Build" Condition="'$(Configuration)' == 'Release'">
<PropertyGroup>
<WorkingDirectory>$(MSBuildThisFileDirectory)bin\$(Configuration)\$(TargetFramework)</WorkingDirectory>
</PropertyGroup>
<ILRepack OutputType="$(OutputType)" MainAssembly="$(AssemblyName).exe" OutputAssembly="$(AssemblyName).exe" InputAssemblies="$(WorkingDirectory)\*.dll" WilcardInputAssemblies="true" WorkingDirectory="$(WorkingDirectory)" />
</Target>
我的整个.csproj
Error Object reference not set to an instance of an object.
at ILRepacking.Steps.Win32Resources.PE.ImageWriter.copySection(Section from,Section to)
at ILRepacking.Steps.Win32Resources.PE.ImageWriter.Write()
at ILRepacking.Steps.Win32Resources.Win32ResourceStep.Patch(String outFile)
at ILRepacking.ILRepack.Repack()
at ILRepack.MSBuild.Task.ILRepack.Execute() Scpstealth C:\GIT\ScpsL-stealth\Scpstealth\Scpstealth.csproj 213
Warning ILRepack: Duplicate ignored: method. Mono.Cecil type: MethodDeFinition. Scpstealth C:\GIT\ScpsL-stealth\Scpstealth\Scpstealth.csproj 213
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。