msbuild
msbuild copied to clipboard
can't resolve licx file with vs2022 and reuturn code -1073741819
Issue Description
It's not successful when I build my C# project with vs2022,bucause of the license.licx which used by a third-party component in my project. But it's ok in vs2019 or older.
Steps to Reproduce
add a licx file in cs project and build it.
Expected Behavior
Work well like vs2019.
Actual Behavior
Can't compile successfuly.
Analysis
In my mind, it may be related with the 64bit envirenment, because vs2022 is woking with it. some helps, the same problem occured when i build it with vs2019 and run with IDesignerHost in 64bit app,which tips Unauthorized.
Versions & Configurations
- vs2022 17.3.0 Preview 2.0 or older
@merriemcgaw are you the right person to pass a licx issue to, or do you know who might be? Note that this isn't for .NET Core, but looks like a VS2022 break on a .NET Framework application.
We're probably the best place for this issue. @Tanya-Solyanik is on vacation this week, but I'll chat with her next week to see what we might be able to do. Thanks!
I would guess that the path to LC.exe is incorrect in the 64 bit version of VS. https://github.com/dotnet/msbuild/blob/65c50fb73faefec0ef2ce8256b802f50cc8236f0/src/Tasks/Microsoft.Common.CurrentVersion.targets#L3363-L3392
@Olina-Zhang - could you please create a .NET Framework repro app with 3rd party controls, for example DevExpress trial version and collect a detailed build log from the VS. Set logging to diagnostic in Tools->Options->projects and solutions->build and run
@Tanya-Solyanik I cannot repro this issue in Winforms .net framework application with 3rd party controls from DevExpress, build and run app successfully in VS 2022. @wangrd Could you please let us know what is your third-party component in order to collect details build log?
This issue is marked as stale because feedback has been requested for 30 days with no response. Please respond within 14 days or this issue will be closed due to inactivity.
@Tanya-Solyanik I cannot repro this issue in Winforms .net framework application with 3rd party controls from DevExpress, build and run app successfully in VS 2022. @wangrd Could you please let us know what is your third-party component in order to collect details build log?
I have used the spread farpoint for winform 8.0. as I know it's a com component.