-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DsComTypeLibraryEmbedAfterBuild and _DsComExportTypeLibraryAssemblyFile #286
Comments
@bclothier can you take a look at this? |
As I understand it, at this stage of the build, the
Can you confirm that the file is present in the |
Hi, the file in the ComHostIntermediatePath (obj folder) is there and the .tlb is correctly embedded in the .dll (file is bigger). The problem is that the .dll is not copied back to the BaseOutputPath folder. |
Hmm, the thing is that dscom does not control the building of the This does not explain why you would get exit code of 1. Do you see any detailed error in your build output log? |
Seems that I need to compile two times in row to get the .tlb embedded, can this be fixed? |
ComHostIntermediatePath is created in _CreateComHost in Microsoft.NET.Sdk.targets. This is part of
So, in theory, the ComHostIntermediatePath must exist. Unfortunately _CreateComHost depends on CoreCompile, which it itself is a dependency to. So, if I see this correctly, building twice here is desired by .NET SDK ... |
I agree with closing this issue, but I think would be better to document this behavior somewhere |
You are right! 👍 |
Documents #286 Co-authored-by: Carsten Igel <cigel@dspace.de>
Hi,
I'm trying the new EmbedTypeLibrary feature that sounds very promising.
My project has a BaseOutputPath to a custom directory and so I have in my project
The problem is that dscom.exe is called with the right --tlbexport, but the wrong --embed parameter, pointing to the default OutputPath.
dscom.exe tlbexport "D:\x86\Release\net6.0\MyLibrary.dll" --embed C:\...\obj\x86\Release\net6.0\MyLibrary.comhost.dll --out "D:\x86\Release\net6.0\MyLibrary.tlb"" exited with code 1.
The text was updated successfully, but these errors were encountered: