Why can't Team Explorer connect? - visual-studio-2017

After having issues with VS2017 Enterprise memory leaks, but none with Team Explorer functionality, I've uninstalled and installed community edition.
tf settings connections shows I'm connected
tf vc checkin works just fine.
where tf shows it is running the 2017 TF.exe
removed my account from both the tfs section, and the vs sign-in in visual studio and added back.
going to the project in a browser at ____.visualstudio.com shows my login works just fine there too.
removed connection from team explorer manager and it no longer has any hosted repositories showing in the Connect to a Project dialog
devenv /resetuserdata as an administrator did not fix it
going in the visual studio baked-in web browser, it comes up as already logged in and shows the projects just fine.
I'm not behind a proxy
deleted project's .suo file
removed stored Microsoft account credentials from Windows 10 credential manager
tried opening vs stand-alone (not opening a project to open it) and connecting
What causes VS2017 to refuse to show VSTS projects?

I experienced the same behavior today with version 15.9.5.
I also tried other options like deleting the VS related folders in %LocalAppData%, etc. to no avail.
The solution is to remove your account from within Visual Studio by selecting 'Account Settings' from the drop-down after clicking your name in the upper-right. Now remove the VSTS account, restart Visual Studio, enter your VSTS credentials anew and voila.

Related

In Visual Studio 2017 - Build > Publish Website has stopped working

I have a web forms project in Visual Studio 2017 which I have been successfully updating and publishing for a number of years. Today, after doing a mass search/replace to update references to HTTP to HTTPS where maybe 100+ files updated, the Build > Publish Website has stopped working.
"Build" and "Rebuild" still seems to work fine, but when I click Build > Publish Website, simply nothing happens. Nothing appears in the output and no errors. Same if I right-click on the website in solution explorer and choose the Publish option there.
I have another website project in VS2017 and fortunately that one still works, so the issue seems to be limited to this particular solution.
Does anyone have any ideas?

Can't open AVD manager in Visual Studio, internet connection error message

I am new to Xamarin and trying to set up a virtual device using the ADM (Android Device Manager) in Visual Studio 2017. When I click to open the ADM it looks like it's loading for a moment and then pops up the error message "Android SDK instance could not be loaded. Please check your internet connection."
I know that I am connected to the internet, I was even able to download and install packages in VS. Any ideas on how to resolve this issue? I'm guessing it's some sort of issue with VS not knowing where my SDK is installed. I also tried opening the SDK manager (tools >android >android sdk manager) and navigating to the folder to show Visual Studio where my SDK is installed but even that window won't load up properly so I can't set the path! It gives the error message "Loading SDK component information failed. Please Retry." I did retry but nothing changes.
I found a solution
In Visual Studio Go to Tools->Android->Android SDK Manager
When the SDK manager starts, go to the bottom right hand corner and click the button with a cog on it
Go to Repository and select Google (Unsupported)
I was then able to use the Android Device Manager and create a new device
You can change it back to the Microsoft (Supported) when complete
I am using Visual Studio 2017 version 15.9.5
Is this due to capacity issues in Azure. I'm sure this worked with the current version of Visual Studio 2017 I have been using 15.9.5

VS Community 2017 - Creating a Website with Membership/User Login

I'm trying to build a very basic ASP.net (VB) site with login/members-only pages, using VS Community 2017.
I found this link and thought I was golden:
Walkthrough: Creating a Web Site with Membership and User Login
However, it's for VS 2010, and a major part of the process is using the "Security setup wizard" which doesn't seem to exist in 2017. Is there some equivalent, or directions for doing the same work in 2017?
Googling with combinations of "Visual Studio 2017" "user login" "membership" "user authentication" etc. has given me mostly results about the VS 2017 software needing a log in, but nothing very helpful about creating a website with login.

How to publish a website in Visual Studio 2017

I am migrating from Visual Studio 2008 to VS 2017.
In 2008 I had a menu item: Build -> Publish Website.
I configured that to put the website on a share on the webserver so I pretty much could use that menu item to deploy to the test server so the users could test.
I cannot find that menu option on 2017.
The functionality seems to be moved to the Publish Web Site Tool described here:
https://msdn.microsoft.com/en-us/library/377y0s6t.aspx#thepublishwebsiteutility
I can not find how to install this. I can not find it in the Visual Studio Installer utility.
I can find instructions for publishing, but those instructions include creating the project from scratch. I need to do this on an existing project.
Visual Studio 2017 has these features from the Build menu...
Or, right-click your project...
A wizard will start asking how you want to publish your project. There is ample documentation for this on the web.

VS2017 Web Publish Preview - unable to exclude files

When publishing a web application in Visual Studio 2017 Enterprise I can do a preview on the files that are changed by clicking the preview link. The window comes up and I can uncheck files I dont want BUT, there is only a cancel button, and I am not able to update the file list.
There use to be the ability to click Publish from that view to only update the selected files but now that is no longer the case.
Is there an alternative "tools" way in Visual Studio 2017 Enterprise to publish and exclude certain files from being updated for example the web.config?
I don't have an alternative tool however according to the forums this has been patched and will be deployed in the next public release (15.3).
https://developercommunity.visualstudio.com/content/problem/26373/publish-preview-not-allowing-selective-publish-of.html
I've been getting around this by copying the files that I don't want and replacing them back after I publish.
I can confirm that this has now been fixed as of the latest update 15.3 which was released this week