How to deploy ClickOnce.NET 3.5 application on a .NET 3.0 computer?

I have a .NET 3.5 SP1 WPF that I am successfully deploying to client computers using ClickOnce.

Now I have a new requirement - one of our clients needs to run the application on machines equipped only with .NET 3.0, and it is completely impossible to update or install anything on the machines. I already tried to run the 3.5 application with some of the 3.5.NET Framework DLLs copied to the application directory and this worked without problems. The only problem at the moment is ClickOnce. I already included it in the list of application files in 3.5.NET Framework System format. *. The dll files, but it always aborts the installation on machine 3.0 with this error message:

Cannot install or run expression. The application requires that the assembly System.Core Version 3.5.0.0 must be installed in the global assembly cache (GAC). please contact your system administrator.

I already tried to set up the prerequisites on the Publish tab of my project, but no combination solved the problem.

What part of ClickOnce is responsible for checking the prerequisites? I already tried to deploy using mageui.exe, but the 3.5.NET Framework error is still present. What should I do to click the ClickOnce button so that I don't check any prerequisites at all?

The project is created using Visual Studio 2010.


- ClickOnce ( MageUI ) , "preRequisite" 3.5 (System.Core, System.Data.Entity). ClickOnce /MageUI - ...

+3
3

stub.exe, 3.0 Framework? ClickOnce, ​​ . 3.5.

, Visual Studio. , MageUI.

Edit
" " . , Mage.

+1

, .NET 3.5 .NET 3.5. , .NET 3.0, .NET 3.0 .

# "" .

VB IIRC "", " ".

0

, - .NET Framework 3.5 1 (SP1) , ( , )

0

Source: https://habr.com/ru/post/1745798/


All Articles