I have a winforms application that had click once working in visual studio. after the recent update to 16.11.5, the exact same publish profile for the clickonce app is no longer working after updating from an earlier version of visual studio.
Anywhere I should check for changes to click once? this is really baffeling and my google skills seem to be failing me in finding an issue.
The only output I get from the publish (build output log) is that the publish succeeded. The files are being published to the staging publish folder and I have made sure I have full permissions on the network share configured for the user install location.
So I've created an offline installed of VS 2017 Community on my laptop using this command:
vs_community.exe --layout "D:\Downloads\VS Community 2017" --lang en-US --add Microsoft.VisualStudio.Component.CoreEditor Component.WebSocket Microsoft.VisualStudio.Workload.ManagedDesktop Microsoft.VisualStudio.Workload.NetCrossPlat Microsoft.VisualStudio.Workload.NetCoreTools Microsoft.VisualStudio.Workload.Node Microsoft.VisualStudio.Component.TypeScript.2.0
When I transfer the setup files onto my corporate PC (which is behind a firewall) and run the "vs_community.exe" setup file, all I get is this error. There's no way to bypass the corporate firewall or to make exceptions. How do I install VS 2017 offline? Am I missing something here?
Edit: I have installed VS 2017 on my laptop keeping the internet connection active. Then when I disconnect the internet on my laptop and try installing again, the installer launches! So perhaps there are some dependencies missing on my corporate PC that are now installed on my laptop?
Edit: The above command installs .NET, .NET core, Xamarin, Node.js, TypeScript and C++ for Mobile. The total downloaded size is 13.2 GB.
It worked!! All I had to do was install the certificates into the root CA! Something I missed noticing in the VS 2017 docs:
How to install from the offline installation folder
Install the certificates (They are in the "certificates" folder, which is in your Layout folder. )
Simply right-click each one and choose Install PFX.
Specify Local machine (not current user)
You can use an empty password
Run the installation file. For example, run:
c:\vs2017offline\vs_enterprise.exe
--- Microsoft Docs
Edit: Remember to install the certs using the Admin account on the PC, or it won't work...
Please try to follow this steps:
Right click on exe file.
Select "Properties".
Click on the "Digital Signatures" tab. Now you can see "signature list".
Select signature
Click on "Details" button.
Click on "View certificate" button
Click on "Install certificate" and follows installation wizard
All certificates within "signature list" should be installed. I use Windows 10.
Was doing this for VS Community 2017 and it would install everything and it does the core installation without any trouble. However, if i select to install the universal or .Net development portions it will install it almost completely, but it will fail on two files. It will say that it cannot download the files from the internet. The files exist in the installation directory and I even went and downloaded the files and placed them into the appropriate directories and it still thinks that it needs to download those two files preventing me from completing the installation process. If I just continue it will install everything else except those two files. I've tried this with a few different layout downloads in different forms (ISO, directory, etc) and same issue (so it isn't a bad download or anything, and I'm sure I did that all correctly). The two files are:
https://download.visualstudio.microsoft.com/download/pr/10983757/f8c877406947fdc71ed2dd9127d2f9fa/microsoft.codeanalysis.visualstudio.interactivecomponents.resources.vsix
https://download.visualstudio.microsoft.com/download/pr/11347028/25bedee219940beceecab91dac231235/microsoft.visualstudio.testtools.testplatform.legacy.core.resources.vsix
If I plug myself online and do a repair it will go grab those two files without having to grab everything else, but it kind of defeats the purpose. Don't expect a solution, but wanted to mention it because all the other problems are related to installing the certs and I can't find anything online about it failing on just a few files.
In my case it was related to CNG key isolation windows service, it was disabled, the solution mentioned in below link:
Visual Studio 2017 - Can't install
How i solved mine.
I downloaded the setup helper from Microsoft website (i downloaded the enterprise installer, because that's the offline installer version i have )
I ran the program, and it wanted to download the complete setup, so i cancelled it
I ran my offline installer (vs_Enterprise.exe)
Then it fixed the issue.
I disconnected the internet, and continued with the offline installation
I have the same issue after uninstalling SSDT for Visual studio 2017, Can't remove and reinstall or update visual studio 2017.
I just restart my machine and it's OK.
my be you have also to log in as an administrator ( it depends on your machine configuration and what you can do with you current account)
Edited to avoid misunderstand
Running the downloaded Visual Studio layout as administrator worked for me.
Maybe the VS_Version.exe try to normally download the files because it can't access to files in the layout (sometimes named backup), like me, in my job we have a lot of restrictions and when I ran the VS_version.exe tried to download and get the message error, but when I ran again the .exe as Administrator the installer started normaly, getting the files from the backup folder
I'm facing an annoying problem involving my installation of Visual Studio 2015 Enterprise. I just got into a cross platform mobile project and I have fetched the source code from version control. The solution consists of several mobile projects (Android, iOS) that work fine and a UWP project that refuses to load. It says on the solution explorer:
This project requires a Visual Studio update to load. Right click on the project and choose "Download Update"
After clicking "Download Update" I'm presented with this page: https://developer.microsoft.com/en-us/windows/downloads/sdk-archive .
I've tried downloading all three of the SDKs (I don't think it's an emulator issue so I haven't bothered download the emulator installers).
All three throw this error:
I've tried modifying my Visual Studio installation from the control panel but as you can see the installer claims all Windows SDKs are currently installed:
I've tried re-installing the SDKs. I've tried reinstalling Visual Studio 2 times, one of them involved a full uninstall by running
vs_enterprise.exe /uninstall /force
in a command prompt but to no avail.
Also when I try to create a fresh UWP Project the only platform I can target is the 10.0.240 build. I recall being able to target other versions in the past but the dropdown only contains this option now.
I finally solved it after quite a lot of research. I followed these steps:
Go to Control Panel > Programs & Features
Find Microsoft Visual Studio 2015, right click on it and select 'Change'
When the installer pops up select 'Modify'
Uncheck the whole 'Universal Windows Apps Development tools' section
Wait until the uninstallation is complete
Restart
Again go to Control Panel and find the SDK installers which apparently are not removed using the above method:
Uninstall them all
Restart
Visit this page: https://developer.microsoft.com/en-us/windows/downloads/sdk-archive and download all three SDKs
Start by installing version 10.0.26624 and work your way up
After you're done go to control panel find the Visual Studio Installation, right click, click 'Change' then after the wizard loads select 'Modify'
Make sure every option in the 'Universal Windows Apps Development Tools' section is checked, click Next
After the installation of the SDKs and tools is complete restart your computer
The error should be gone now
I ran into this error trying to add a Portable Class Library project to a solution. It occurred whether I asked it to target Windows Universal 10.0 or Windows 8.1.
The workaround I used is to ask it to also target ASP.NET Core 1.0, even though I wasn't using ASP.NET.
I also ran into this which took me a lot of time to solve. Actually YOU DON'T HAVE TO REINSTALL ANYTHING! If you are totally sure your Visual Studio is up to date, just follow these steps and it will solve your problems: https://stackoverflow.com/a/35733823/3322347
I'm unable to create a .zip deployment package for an MVC app because Visual Studio's Publish wizard is missing the option to choose different publishing profile or publish targets. The only option visible and selectable is the "Microsoft Azure Virtual Machines".
Here is a screenshot of the publish window:
What can be the cause of this? I recently installed some Azure related SDKs, so that might have something to do with it, but I'd still expect to see the old options also..
I have a windows phone application build for windows phone 8, in Visual Studio 2012. I have started incorporating azure, and found that Visual Studio 2013, was a smarter choice for this. Therefore I installed the new VS, and opened the file, but I cannot get it to upgrade the solution.
I use the Visual Studio Version Selector as default opener, and it open the solution in my VS2013. But it is still VS2012 version, as can be seen on the picture:
I have tried to use Save as, which is stated as a solution here. But still the solution does not change. Anyone has a suggestion for how to upgrade the solution to VS2013?
What I want to use is what is shown in this video on Channel9. So I need to some how upgrade my project, or do I have to copy the code to a new project :-/ ?
I tried installing the SDK's from Microsoft Azure, but still no luck.
EDIT
The feature where you add connected service is not available for windows phone. And you do therefore not need to upgrade the VS solution. But still I had problems getting access to the server.
Go to "View", and click "Server Explorer". There one can see a windows/Azure logo, by clicking it you will add your windows azure account. apparently this does not mean adding your services even though it states that you are logged in and with the correct subscription.
Solution
However the solution I stumbled upon was to add a new Mobile Service. Where then get prompted to choose my subscription which then was not there. Apparently the subscriptions can be loaded in different ways. Therefore in this new popup under subscriptions choose import. And you basically get the route described.
After importing the subscription, you then cancel creating a new services(If you did not need it :)). And now all your azure stuff will be accessible to manage as seen in this link.
However it does not create the code lines since you are not using "add connected services" which is possible in windows apps.
Finally an answer :)
You cannot convert solution from Visual Studio 2012 to 2013 because it is not changed at all.
Sln is just xml file and it is remain same so there is no need to convert it from 2012 to 2013