不能使用的ClickOnce发布的.NET 4.0应用程序从Visual Studio 2012应用程序、NET、ClickOnce、Studio

2023-09-04 00:31:15 作者:神啊,赐个妞吧

我安装了Visual &工作室NBSP; 2012年就去发布我们的应用程序之一,即是针对.NET 4.0框架。由于对这些机器的设置,我们无法针对4.5在这个时候。我们还使用了下载prerequisites从同一地点为我的应用程序的功能。

I installed Visual Studio 2012 and went to go publish one of our applications, that is targeted at the .NET 4.0 framework. Due to the setup on these machines, we can not target 4.5 at this time. We are also using the 'Download prerequisites from the same location as my application' feature.

在去从Visual&NBSP部署;工作室  2012年,我得到以下错误:

When going to deploy from Visual Studio 2012, I get the following error:

要启用下载prerequisites从同一个位置我   在prerequisites对话框中的应用,你必须下载文件   DotNetFX40 \ dotNetFx40_Full_x86_x64.exe'的项目微软.NET   框架4(x86和x64)到本地计算机。欲了解更多   详情,请参阅 http://go.microsoft.com/fwlink/?LinkId=239883。

To enable 'Download prerequisites from the same location as my application' in the Prerequisites dialog box, you must download file 'DotNetFX40\dotNetFx40_Full_x86_x64.exe' for item 'Microsoft .NET Framework 4 (x86 and x64)' to your local machine. For more information, see http://go.microsoft.com/fwlink/?LinkId=239883.

如果你去链接,它会告诉你导航到package.xml文件,并找到链接实际prerequisite。在我的情况,就应该到 http://go.microsoft.com/fwlink/?linkid = 182805 。使用该链接下载它命名dotNetFx40_Full_setup.exe包。我在此放置 /封装/ DotNetFX40 文件夹。

If you go to that link, it tells you to navigate to the Package.xml file, and find the link for the actual prerequisite. In my case, it should go to http://go.microsoft.com/fwlink/?linkid=182805. Using that link it downloaded a package named dotNetFx40_Full_setup.exe. I placed this in the /Packages/DotNetFX40 folder.

当试图从Visual&NBSP再次发布;工作室  2012年,我得到了同样的错误。它似乎不喜欢这个文件。

When trying to publish again from Visual Studio 2012, I got the same error. It seems that it does not like this file.

如果我发布了相同的应用程序到同一位置与Visual &工作室NBSP;现在2010年,它仍然只是罚款

If I publish the same application to the same location with Visual Studio 2010 now, it still works just fine.

我如何能得到这个与Visual&NBSP工作;工作室  2012

How can I get this to work with Visual Studio 2012?

推荐答案

我有同样的问题。

重命名你下载到C的dotNetFx40_Full_setup.exe文件:\ Program Files文件\微软的SDK \的Windows \ v8.0A \引导程序\包\ DotNetFX40目录dotNetFx40_Full_x86_x64.exe。

Rename the dotNetFx40_Full_setup.exe file that you download into the C:\Program Files\Microsoft SDKs\Windows\v8.0A\Bootstrapper\Packages\DotNetFX40 directory to dotNetFx40_Full_x86_x64.exe.

我能够这样做之后,成功发布我的应用程序。

I was able to successfully publish my application after doing this.