2021年1月3日星期日

Problem occurs when ClickOnce deployment of a solution with complex target-framework

Within the solution There is a Class Library whose Target-Framework is net5_0. The executable project is WPF and the Target-Framework is net5.0-windows10.0.18362.0.

For example:

A.csproj (net5.0, class library)  B.csproj (net5.0-windows10.0.18362.0, wpf library, dependency: A)  C.csproj (net5.0-windows10.0.18362.0, wpf app, dependency: B)  

When I post clickonce targeting a C project I get the error below.

11>Cannot find metadata file'C:\data\A\src\A\bin\Release\net5.0-windows10.0.18362.0\ref\A.dll'.  

The path to A.dll is invalid. The actual location is Release\net5.0\ref\A.dll.

What should I do?

https://stackoverflow.com/questions/65557204/problem-occurs-when-clickonce-deployment-of-a-solution-with-complex-target-frame January 04, 2021 at 11:06AM

没有评论:

发表评论