ILMerge - pdb associated with dll is out of date











up vote
2
down vote

favorite












Trying to build executable with all libraries inside with help of ILMerge:



"C:Program Files (x86)MicrosoftILMergeILMerge.exe" MyScan.exe DirectShowLib.dll Google.Apis.Auth.dll Google.Apis.Auth.PlatformServices.dll Google.Apis.Core.dll Google.Apis.dll Google.Apis.PlatformServices.dll Google.Apis.Sheets.v4.dll log4net.dll Newtonsoft.Json.dll zxing.dll zxing.presentation.dll /out:MyScan2.exe


Got error one of dll's is out of date:



An exception occurred during merging:
ILMerge.Merge: There were errors reported in Google.Apis.Auth's metadata.
The pdb associated with c:ProjectsMyscanMYScanbinReleaseGoogle.Apis.Auth.dll is out of date.
at ILMerging.ILMerge.Merge()
at ILMerging.ILMerge.Main(String args)


What does it mean? Why Google.Apis.Auth.dll pdb is out of date and how to fix that? I have cleaned and rebuilt project, but this not helped.



UPD



I had to delete all pdb's associated with google api. After that I got error:



Unresolved assembly reference not allowed: System.Core.
at System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly)
at System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type)
at System.Compiler.Ir2md.WriteTypeDefOrRefEncoded(BinaryWriter target, TypeNode type)
at System.Compiler.Ir2md.WriteTypeSignature(BinaryWriter target, TypeNode type, Boolean instantiateGenericTypes)
at System.Compiler.Ir2md.WriteTypeSignature(BinaryWriter target, TypeNode type, Boolean instantiateGenericTypes)
at System.Compiler.Ir2md.GetBlobIndex(TypeNode type)
at System.Compiler.Ir2md.GetTypeSpecIndex(TypeNode type)
at System.Compiler.Ir2md.VisitReferencedType(TypeNode type)
at System.Compiler.Ir2md.VisitMethod(Method method)
at System.Compiler.Ir2md.VisitClass(Class Class)
at System.Compiler.Ir2md.VisitModule(Module module)
at System.Compiler.Ir2md.SetupMetadataWriter(String debugSymbolsLocation)
at System.Compiler.Ir2md.WritePE(Module module, String debugSymbolsLocation, BinaryWriter writer)
at System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName)
at System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Module module)
at ILMerging.ILMerge.Merge()
at ILMerging.ILMerge.Main(String args)









share|improve this question
























  • The pdb is (hopefully) not part of your project, but of a dependency. Could be that the shipped pdb in the google nuget is really invalid - I'd simply delete the pdb in the build folder before calling ilmerge and seeing if it helps. Doing that as a workaround seems ok - you really only lose line numbers of exceptions inside the google dll, which seems minor.
    – Voo
    Nov 11 at 15:23










  • I have deleted pdb's associated with google api, but then got error described in question body UPD
    – vico
    Nov 11 at 15:44










  • Going out on a limb: You're creating a .net core application and haven't built a self-contained app.
    – Voo
    Nov 11 at 17:15










  • I'm creating simple .NET framework single form application
    – vico
    Nov 11 at 17:40















up vote
2
down vote

favorite












Trying to build executable with all libraries inside with help of ILMerge:



"C:Program Files (x86)MicrosoftILMergeILMerge.exe" MyScan.exe DirectShowLib.dll Google.Apis.Auth.dll Google.Apis.Auth.PlatformServices.dll Google.Apis.Core.dll Google.Apis.dll Google.Apis.PlatformServices.dll Google.Apis.Sheets.v4.dll log4net.dll Newtonsoft.Json.dll zxing.dll zxing.presentation.dll /out:MyScan2.exe


Got error one of dll's is out of date:



An exception occurred during merging:
ILMerge.Merge: There were errors reported in Google.Apis.Auth's metadata.
The pdb associated with c:ProjectsMyscanMYScanbinReleaseGoogle.Apis.Auth.dll is out of date.
at ILMerging.ILMerge.Merge()
at ILMerging.ILMerge.Main(String args)


What does it mean? Why Google.Apis.Auth.dll pdb is out of date and how to fix that? I have cleaned and rebuilt project, but this not helped.



UPD



I had to delete all pdb's associated with google api. After that I got error:



Unresolved assembly reference not allowed: System.Core.
at System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly)
at System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type)
at System.Compiler.Ir2md.WriteTypeDefOrRefEncoded(BinaryWriter target, TypeNode type)
at System.Compiler.Ir2md.WriteTypeSignature(BinaryWriter target, TypeNode type, Boolean instantiateGenericTypes)
at System.Compiler.Ir2md.WriteTypeSignature(BinaryWriter target, TypeNode type, Boolean instantiateGenericTypes)
at System.Compiler.Ir2md.GetBlobIndex(TypeNode type)
at System.Compiler.Ir2md.GetTypeSpecIndex(TypeNode type)
at System.Compiler.Ir2md.VisitReferencedType(TypeNode type)
at System.Compiler.Ir2md.VisitMethod(Method method)
at System.Compiler.Ir2md.VisitClass(Class Class)
at System.Compiler.Ir2md.VisitModule(Module module)
at System.Compiler.Ir2md.SetupMetadataWriter(String debugSymbolsLocation)
at System.Compiler.Ir2md.WritePE(Module module, String debugSymbolsLocation, BinaryWriter writer)
at System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName)
at System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Module module)
at ILMerging.ILMerge.Merge()
at ILMerging.ILMerge.Main(String args)









share|improve this question
























  • The pdb is (hopefully) not part of your project, but of a dependency. Could be that the shipped pdb in the google nuget is really invalid - I'd simply delete the pdb in the build folder before calling ilmerge and seeing if it helps. Doing that as a workaround seems ok - you really only lose line numbers of exceptions inside the google dll, which seems minor.
    – Voo
    Nov 11 at 15:23










  • I have deleted pdb's associated with google api, but then got error described in question body UPD
    – vico
    Nov 11 at 15:44










  • Going out on a limb: You're creating a .net core application and haven't built a self-contained app.
    – Voo
    Nov 11 at 17:15










  • I'm creating simple .NET framework single form application
    – vico
    Nov 11 at 17:40













up vote
2
down vote

favorite









up vote
2
down vote

favorite











Trying to build executable with all libraries inside with help of ILMerge:



"C:Program Files (x86)MicrosoftILMergeILMerge.exe" MyScan.exe DirectShowLib.dll Google.Apis.Auth.dll Google.Apis.Auth.PlatformServices.dll Google.Apis.Core.dll Google.Apis.dll Google.Apis.PlatformServices.dll Google.Apis.Sheets.v4.dll log4net.dll Newtonsoft.Json.dll zxing.dll zxing.presentation.dll /out:MyScan2.exe


Got error one of dll's is out of date:



An exception occurred during merging:
ILMerge.Merge: There were errors reported in Google.Apis.Auth's metadata.
The pdb associated with c:ProjectsMyscanMYScanbinReleaseGoogle.Apis.Auth.dll is out of date.
at ILMerging.ILMerge.Merge()
at ILMerging.ILMerge.Main(String args)


What does it mean? Why Google.Apis.Auth.dll pdb is out of date and how to fix that? I have cleaned and rebuilt project, but this not helped.



UPD



I had to delete all pdb's associated with google api. After that I got error:



Unresolved assembly reference not allowed: System.Core.
at System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly)
at System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type)
at System.Compiler.Ir2md.WriteTypeDefOrRefEncoded(BinaryWriter target, TypeNode type)
at System.Compiler.Ir2md.WriteTypeSignature(BinaryWriter target, TypeNode type, Boolean instantiateGenericTypes)
at System.Compiler.Ir2md.WriteTypeSignature(BinaryWriter target, TypeNode type, Boolean instantiateGenericTypes)
at System.Compiler.Ir2md.GetBlobIndex(TypeNode type)
at System.Compiler.Ir2md.GetTypeSpecIndex(TypeNode type)
at System.Compiler.Ir2md.VisitReferencedType(TypeNode type)
at System.Compiler.Ir2md.VisitMethod(Method method)
at System.Compiler.Ir2md.VisitClass(Class Class)
at System.Compiler.Ir2md.VisitModule(Module module)
at System.Compiler.Ir2md.SetupMetadataWriter(String debugSymbolsLocation)
at System.Compiler.Ir2md.WritePE(Module module, String debugSymbolsLocation, BinaryWriter writer)
at System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName)
at System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Module module)
at ILMerging.ILMerge.Merge()
at ILMerging.ILMerge.Main(String args)









share|improve this question















Trying to build executable with all libraries inside with help of ILMerge:



"C:Program Files (x86)MicrosoftILMergeILMerge.exe" MyScan.exe DirectShowLib.dll Google.Apis.Auth.dll Google.Apis.Auth.PlatformServices.dll Google.Apis.Core.dll Google.Apis.dll Google.Apis.PlatformServices.dll Google.Apis.Sheets.v4.dll log4net.dll Newtonsoft.Json.dll zxing.dll zxing.presentation.dll /out:MyScan2.exe


Got error one of dll's is out of date:



An exception occurred during merging:
ILMerge.Merge: There were errors reported in Google.Apis.Auth's metadata.
The pdb associated with c:ProjectsMyscanMYScanbinReleaseGoogle.Apis.Auth.dll is out of date.
at ILMerging.ILMerge.Merge()
at ILMerging.ILMerge.Main(String args)


What does it mean? Why Google.Apis.Auth.dll pdb is out of date and how to fix that? I have cleaned and rebuilt project, but this not helped.



UPD



I had to delete all pdb's associated with google api. After that I got error:



Unresolved assembly reference not allowed: System.Core.
at System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly)
at System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type)
at System.Compiler.Ir2md.WriteTypeDefOrRefEncoded(BinaryWriter target, TypeNode type)
at System.Compiler.Ir2md.WriteTypeSignature(BinaryWriter target, TypeNode type, Boolean instantiateGenericTypes)
at System.Compiler.Ir2md.WriteTypeSignature(BinaryWriter target, TypeNode type, Boolean instantiateGenericTypes)
at System.Compiler.Ir2md.GetBlobIndex(TypeNode type)
at System.Compiler.Ir2md.GetTypeSpecIndex(TypeNode type)
at System.Compiler.Ir2md.VisitReferencedType(TypeNode type)
at System.Compiler.Ir2md.VisitMethod(Method method)
at System.Compiler.Ir2md.VisitClass(Class Class)
at System.Compiler.Ir2md.VisitModule(Module module)
at System.Compiler.Ir2md.SetupMetadataWriter(String debugSymbolsLocation)
at System.Compiler.Ir2md.WritePE(Module module, String debugSymbolsLocation, BinaryWriter writer)
at System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName)
at System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Module module)
at ILMerging.ILMerge.Merge()
at ILMerging.ILMerge.Main(String args)






c# google-api pdb-files ilmerge






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 11 at 15:43

























asked Nov 11 at 13:48









vico

4,5292166136




4,5292166136












  • The pdb is (hopefully) not part of your project, but of a dependency. Could be that the shipped pdb in the google nuget is really invalid - I'd simply delete the pdb in the build folder before calling ilmerge and seeing if it helps. Doing that as a workaround seems ok - you really only lose line numbers of exceptions inside the google dll, which seems minor.
    – Voo
    Nov 11 at 15:23










  • I have deleted pdb's associated with google api, but then got error described in question body UPD
    – vico
    Nov 11 at 15:44










  • Going out on a limb: You're creating a .net core application and haven't built a self-contained app.
    – Voo
    Nov 11 at 17:15










  • I'm creating simple .NET framework single form application
    – vico
    Nov 11 at 17:40


















  • The pdb is (hopefully) not part of your project, but of a dependency. Could be that the shipped pdb in the google nuget is really invalid - I'd simply delete the pdb in the build folder before calling ilmerge and seeing if it helps. Doing that as a workaround seems ok - you really only lose line numbers of exceptions inside the google dll, which seems minor.
    – Voo
    Nov 11 at 15:23










  • I have deleted pdb's associated with google api, but then got error described in question body UPD
    – vico
    Nov 11 at 15:44










  • Going out on a limb: You're creating a .net core application and haven't built a self-contained app.
    – Voo
    Nov 11 at 17:15










  • I'm creating simple .NET framework single form application
    – vico
    Nov 11 at 17:40
















The pdb is (hopefully) not part of your project, but of a dependency. Could be that the shipped pdb in the google nuget is really invalid - I'd simply delete the pdb in the build folder before calling ilmerge and seeing if it helps. Doing that as a workaround seems ok - you really only lose line numbers of exceptions inside the google dll, which seems minor.
– Voo
Nov 11 at 15:23




The pdb is (hopefully) not part of your project, but of a dependency. Could be that the shipped pdb in the google nuget is really invalid - I'd simply delete the pdb in the build folder before calling ilmerge and seeing if it helps. Doing that as a workaround seems ok - you really only lose line numbers of exceptions inside the google dll, which seems minor.
– Voo
Nov 11 at 15:23












I have deleted pdb's associated with google api, but then got error described in question body UPD
– vico
Nov 11 at 15:44




I have deleted pdb's associated with google api, but then got error described in question body UPD
– vico
Nov 11 at 15:44












Going out on a limb: You're creating a .net core application and haven't built a self-contained app.
– Voo
Nov 11 at 17:15




Going out on a limb: You're creating a .net core application and haven't built a self-contained app.
– Voo
Nov 11 at 17:15












I'm creating simple .NET framework single form application
– vico
Nov 11 at 17:40




I'm creating simple .NET framework single form application
– vico
Nov 11 at 17:40

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53249394%2filmerge-pdb-associated-with-dll-is-out-of-date%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53249394%2filmerge-pdb-associated-with-dll-is-out-of-date%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Full-time equivalent

さくらももこ

13 indicted, 8 arrested in Calif. drug cartel investigation