6
votes

I'm trying to publish an application with a pre-req being .NET 4.5. I have Clicked create a setup program to install prereq components and I have selected to include .NET Framework 4.5

I have Selected download pre-req from the following location: and set a link to my server. This is the error when I try Publish it:

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

I've tried with .NET 4.5 and .NET 4.5.1, downloaded to local PC and Server and still have the same issue.

Anyone know what the go is? Thanks.

2
Why did you enable ‘Download prerequisites from the same location as my application’?Dour High Arch
I didn't, I set it to download from te following location. I tried that as well but it didnt workAlexP2014
Visual Studio thinks you enabled it. Open your projects' Properties windows, their Publish tab, then click Prerequisites. What install location is specified?Dour High Arch

2 Answers

2
votes

I usually set it to get the files from MS so this is off the top of my head but I think that if you add the redist to the solution and than Click on the "Application Files" button in the Publish tab of your project properties and make sure that the .NET 4.5 redistributable is in the list and all the properties are set properly you should be good to go...

1
votes

Have you followed the instructions in the link? http://msdn.microsoft.com/en-us/library/hh873130(v=vs.110).aspx

You need to download and place the installer in the appropriate directory then map it inside the XML (the instructions under heading "To add an installer package for the .NET Framework 4.5").