oleg-shilo / wixsharp

Framework for building a complete MSI or WiX source code by using script files written with C# syntax.
MIT License
1.07k stars 169 forks source link

Getting ICE03 Invalid Language ID error for numerous dlls referred while building MSI #1558

Open abskulkarni opened 3 weeks ago

abskulkarni commented 3 weeks ago

Hi @oleg-shilo

I had referred Dac Nuget package in my ClientApp.EXE project which is then getting built as a feature under Wix for MSI.

Now, in Wix project, I am getting below error for numerous dlls referred in my ClientApp.EXE project

LGHT0204 ICE03: Invalid Language Id; Table: File, Column: Language, Key(s): Microsoft.Data.Tools.Schema.Sql.resources.dll_3185449638

image

What is this error and how to resolve this?

oleg-shilo commented 3 weeks ago

Can you please provide the test project that demonstrates your problem.

The sample project that I created according to your description compiles just fine (attached). WixSharp Setup17.zip

Note, in the attached sample you will need to update the path in program.cs

abskulkarni commented 2 weeks ago

Hi @oleg-shilo

Sorry to be wordy below in advance... :(

Problem comes with Wix# project when I refer Nuget package Microsoft.SqlServer.DacFx (version 162.3.563) in client app.

Here are the steps I did to get error:

  1. Create client app (simple C# Win Form app .NET framework 4.8)
  2. Copy its output to C:\Test folder... i.e. C:\Test\MyWixProduct\ClientApp.exe etc.
  3. Create Wix V3 project. This will be having Managed UI of Feature tree (project.UI = WUI.WixUI_FeatureTree;) and taking C:\Test as source directory.
  4. Build Wix V3. It does compile smoothly. All smooth

Now comes a twist..

  1. In ClientApp project, I add Nuget package Microsoft.SqlServer.DacFx (version 162.3.563)... It installs whole lot of other dependent packages.
  2. Build ClientApp and copy its output again to C:\Test\MyWixProduct folder
  3. Try to rebuild Wix V3 projject and boom!! you get below error.

image

image

image

My simple sample app becomes 180 MB and unable to attach here. I hope you may be able to recreate error through my steps explained above.

oleg-shilo commented 2 weeks ago

Thank you for the test case. Will check on weekend

oleg-shilo commented 1 week ago

Hm... I cannot reproduce the problem. I have attached the sample it builds just fine.

ConsoleApp3.zip

My simple sample app becomes 180 MB...

Not if you do not build it and share just project(s).

abskulkarni commented 1 day ago

Hi @oleg-shilo It is a C# WinForm project I have used not console app. Just take normal C# WinForm project targeting .NET framework 4.8, add a button in Form1. Then add Nuget package as discussed above.

Also I have attached POC project without build, hope it will be sufficient for you to reproduce my issue.

WixPOC.zip