cart: empty [ Login ]

Problem when publishing with PublishSingleFile

1 
Benjamin
7/28/2022 7:47 AM
Hello, I have a problem when i publish my app with PublishSingleFile to true. The error is : The type initializer for 'WW.Cad.Model.DxfModel' threw an exception. Inner Exception : System.ArgumentNullException: Value cannot be null. (Parameter 'path1') at System.IO.Path.Combine(String path1, String path2) at WW.Cad.Model.DxfModel..cctor() In the documentation Microsoft, when we use PublishSingleFile Assembly.Location return null, but you can use AppContext.BaseDirectory. How can we fix it ? Thank's
Wout
7/28/2022 7:58 AM
Can you upgrade to version 6.0? I can fix it in 6.0, I've discontinued maintenance on .NET standard as it's being replaced by .NET 6.0. - Wout
Benjamin
7/28/2022 8:09 AM
I have access to the 6.0 version for free ? or i need to buy a new licence ?
Wout
7/28/2022 8:18 AM
Hi, You can also use the 6.0 version, your license is still from October last year. I will authorize you in a minute. I'll let you know when I updated the 6.0 version. - Wout
Wout
7/28/2022 8:55 AM
Hi, I've updated the 6.0 version and sent you a license for it. Note that CadLib will look for a WW.Cad.Settings.json file in the application directory, so make sure you put it there as well so the software knows where to find font files. - Wout
Benjamin
7/28/2022 9:21 AM
Ok thank's a lot :) i will try this today !
Benjamin
7/28/2022 9:57 AM
Working perfectly, thank's a lot !
1