Quantcast
Channel: Visual Studio General Questions forum
Viewing all 21115 articles
Browse latest View live

How to repair or restore Visual Studio 2015 Community Edition commenting

$
0
0

/*<div>...</div>*/

That type of comment string is the only type of comment string my Windows 8.1 Visual Studio 2015 Community Edition (VS2015CE) will apply to any type of code in the editor. The context-aware commenting system has become completely FUBAR. This instance of VS2015CE is installed side-by-side with an instance of Visual Studio 2013 Professional (VC2013Pro.)

I learned how to do VS2015CE resets using the Tools menu, then again from the shell andstill all VS2015CE will apply are the /*...*/ comment strings. Then I tried a Repair and finally an uninstall and reinstall of VS2015CE andstill the FUBAR commenting persists across all attempts to restore the commenting in the editor; different types of code, different projects its all the same.

I also noticed the reinstall fetched project meta data and such. I did not even think about whacking that metadata or know if it matters.

Uninstalling VS2015CE also loads a type of warning advisory page in the browser informing us how to uninstall 3rd Party applications that may have been installed side-by-side with VC2015CE. Nothing itemized on the 3rd party advisory list is installed on the machine. Well, maybe one item like an Android SDK or something related to Android that I do not recall at the moment. Still, I only used VS2015CE for client-side HTML stack and the only way I changed VS2015CE configuration is with custom themes.

So finally is this repairable? How does commenting really work and where are the comment strings fetched from or where are they generated? Perhaps all I might need to do is remap the keyboard shortcuts ctrl-k-c/ctrl-k-u which again only generate /*...*/ comment strings and may have somehow been remapped to that comment string and only that comment string.

Do the keyboard shortcuts call a macro or does the executable listen for them so context-aware comments could be generated by VC2015CE itself.

I don't know. Something has to work don't you think?



How to get fully qualified using statements using the quick fix to add using?

$
0
0

Hi

I'm now working with Visual Studio 2015 Update 1 after working with Visual Studio 2010.

Using statements are placed inside the namespace in my case. If I add a using statement (using the "quick fix") the using statement is not added fully qualified anymore. What can I do to get the behavior like in Visual Studio 2010? (So Add Using should not shorten the added namespace and should keep the empty line after the using statements.)

I would be willing to implement an own extension, but I don't know if it's possible to change the "quick fix" behavior from an extension. Is it maybe possible to get notified (with some Kind of Event, like it's possible for commands in Visual Studio) in an extension to adjust the using statements after the "quick fix"?

See the images for details. The only action done in the images is to add the 2 using statements for the 2 classes.

Before adding the using statements:

Before adding the using statements

After adding the using statements (Visual Studio 2015 Update 1):

After adding the using statements

What I would like to achieve (behavior of Visual Studio 2010):

Behavior I would like to achieve

I did already look for an extension that does what I want, but found none. I also know that Resharper has the feature I want, but I would like to not use Resharper.

Thanks for any suggestions.

Karsten

Issue with NuGet Package restore in ASPNET5

$
0
0

HI 

I have my own NuGet Package for MVC6 which is placed in %userprofile%\.dnx folder. I have added that NuGet entry in Project. JSON file. But the package did not get restore under the following situation.

From Visual Studio Tools->NuGet Package Manager->Package Manager Settings->Package Sources if any of the avialble package sources is checked (even nuget.org) the package restore of my NuGet package get failed.

If all the available sources are disabled(unchecked), package get restored properly.

Please any one help me on this 


Kani


Kani

Trying to "Download report" after load test yields GZip magic number error

$
0
0

Hi,

I'm very new to performance testing with Visual Studio and am still trying to find my way around.

We have Visual Studio 2015 on site with which I've recorded some perf' scripts and created a simple load test to shake out the set up prior to more serious testing later.

I've connected to an instance of VS on Azure to provide Vuser load and have successfully run 2 shake out tests.

The problem I'm getting is when I click the link to "Download report" from the completed test, I get an error message:

 "There was an error while importing the result file. Details : The magic number in GZip header is not correct.  Make sure you are passing in a GZip stream..

After correcting the problem open the results from Load Test Manager."

I've tried Googling the error but can't find the answer.

Is there another method of getting these reports? can I go to where they are stored directly?

Hope you can help this green newbie,

Andy.


Convert a Windows Phone 8.1 app to Win 10.

$
0
0

Visual Studio Community 2015

Attempting to convert a Windows Phone 8.1 app to Win 10.
 I installed and ran "Mobilize Net Silverlight Bridge" against my project. The project then said"Update Required".
Upon right clicking the project in the Solution Explorer, I selected "Download Update".
This brought me to the Microoft website (microsoft.com/en-US/). but no obvious update. After searching around, I elected to do a"repair" on Visual Studio 2015 in hopes that would do the trick.
It did not. So where to now?
How do I get pass this and on to my project development>
Thanks,
 - Charlie


Charles Santos

Visual Studio 2015 Build Errors for existing projects (which compile fine in VS2013)

$
0
0

Hi all,

I just installed VS2015 and try to compile many of my existing VS2013 projects.

Sadly I see that most of my projects no longer compiles with VS2015 giving me with missing references errors:

If I try to compile the same project using VS2013 everything works fine.

Now the weird thing is that if I open the same project in both VS2013 and 2015 and first compile using 2013, then using 'Build' using 2015 will work. But as soon as I do a 'Rebuild' 2015 throws me thousands of errors....

Is that a known bug?


Can't use Bower to install Angular2

$
0
0

How can I install Angular2 using Bower in Visual Studio?

The Manage Bower Packages wizard doesn't show any 2.0.0 alpha version to me, even when I check the "Include prerelease" checkbox:



Still people out there alive using the keyboard?

Working with SQL Server/Office/Windows and their poor keyboard support they seem extinct...

Visual Studio 2015 Update 1 crashes when editing

$
0
0
Is anyone experiencing consistent crashes with this? I'm finding it crashes as soon as I make an edit to a file or after a few edits. I've tried on two projects so far. Same behaviour.

Kevin


I have Visual Studio 2008 Express edition yet I cannot require a key?

$
0
0

I have to use this version due to the course I am doing,however when I click try and register it does not take me to a direct link. 

Can anyone help me out here?

Thanks 

Isaac

P.S- Sorry if I'm posting in the wrong area.

Chaning C++ Text Editor Color Coding back to normal

$
0
0

I want to use Visual Studio 2015 and see black text, like 2012 has it. For a C++ project in VS 2015, I create a new code file and type #include. That text is gray. I thought #include it was blue before? I prefer my color coding to remain the same as it was. MS keeps changing things and I have to learn yet another new thing. Then I have to think about color coding when I want to think about what I'm doing, the code that I write, not text color coding.

To put this back to what I'm used to for C++ projects (default of VS 2012) I went to Tools->Options->Environment->Fonts and Colors. I selected Text Editor settings and set Foreground color to black. I'll take all black text over new color coding any day. The setting did not take. #include is still gray.

How can I fix this?


Scaffolding doesn't work in Visual Basic MVC project

$
0
0

I am using Visual Studio 2015. I created a new Visual Basic MVC project, using all defaults.

When I try to Add a Controller, I right-click on the Controllers folder, select Add then select Controllers... I select the template, then enter the name, and when I click Add on the Add Controller dialog, I get "Visual Basic Command Line Compiler has stopped working" error dialog. When I click "Close the program", I get a very long error message that starts: "There was an error running the selected code generator" it continues to say it cannot find a dll file in my AppData/Local/Temp folder. The file name is different every time.

I have tried this on 2 computers with 6 installations: I have tried in Visual studio 2013, 2013 Update 5, 2015, 2015 Update 1. I have tried different templates. I have tried building, cleaning, restarting, rebooting.

It works absolutely fine in a C# project. But not in a Visual Basic project.


Cannot run exe found in /bin/Debug from command line

$
0
0

I have just downloaded Visual Studio and attempting to create my first C# app. I have a simple program:

static void Main(string[] args) {
    Console.WriteLine("Hi");
}

When I click the start button in Visual Studio, the program runs as expected. However, when I open a command prompt and navigate to the /bin/Debug directory manually and try to run the program, it hangs indefinitely with no output.

Anyone have any idea what could be going wrong?



Can't fix project references

$
0
0

Hi,

I'm 8+ years Java developer trying to learn C#, Xamarin, Azure, Visual Studio things. Currently studying "Building Cross Platform Mobile Apps with C#, Xamarin, and Azure" course from Pluralsight. As I open the sources from chapter #5 (and any other sources), I get missing references and the project does not compile. Using VS 2015 Professional on Windows 10. Help please!

Regards,
Max.


Installing Microsoft Visual Studio 2010 Express

$
0
0

Hello,

     I just installed Visual Studio C++ 2010 Express and I keep getting an error message when I try to Finish the Win 32 Wizard.

     It says It Cannot Evaluate the Property Expression (expression) found at HKEY_LOCAL_MACHINE\SOFTEWARE\MICROSOFT\MSBUILD\TOOLSVersions\14.0@VCTTargetPath. Can someone tell me what the problem is? Thanks.

Kind Regards;

Mitchell

Visual Studio 2015 fails to see Build Tools 2013 is installed

$
0
0

Build error:
Error    MSB8020    The build tools for v120 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, please install v120 build tools.

Unable to select v120 as the Platform Toolset. "Visual Studio 2013 (v120) (not installed)". Receiving the error after installing Build Tools 2013 and rebooting.


Opening data sources causes VS 2015 to crash since I updates to Update 1

$
0
0

Opening data sources causes VS 2015 to crash since I updates to Update 1

What does this error message mean?

$
0
0

"This project is incompatible with the current edition"

That's what I get with the following script:

usingUnityEngine;

usingSystem.Collections;

publicclassNewBehaviourScript: MonoBehaviour

{

// Use this for initialization

voidStart ()

{

Debug.Log ("Hello World Test");

}

}


Allen G. Taylor

Settings Saved but not loaded

$
0
0

I have this situation for months and it annoyed me just enough today to deal with it but with no success.

Changes I do in the Find and Replace window (i.e. Folder Selected, Folder Saved, File masks, Find options, etc) are saved when I exit visual studio. I can open the "current.vssettings" and I see the new folder I created is there in the settings. But, when I restart VS, it doesn't load the new settings it loads an old version somewhere.

If I manually Import the startup settings then all the options are back but letting VS load the "current" settings doesn't work.

If I open the current settings and save the file—thus changing the file time—then VS sees the settings as a new version and load the new stuff. (Something to do with the registry AutoSaveFILETIMEHigh and AutoSaveFILETIMELow I guess?) 

If I exit and start again.... Back to the old stale version!!!!

Where VS takes that stale version of the settings? Why the new settings are not established as the current settings? It is certainly not loading the last version saved on exit.

So as a recap: I can change settings, on exit the settings are saved in the current settings, on startup the settings loaded are not the last version. If a change the file time of the last version and then start VS, the new settings are loaded.

Tired of resetting the folders, masks, and options everytime...

ML

P.S. I found an old post that mentionned that ReSharper was messing up with the settings so I tried disabling ReSharper but it does the same.

Visual Studio 2015 Community - "Based on your project we have identified extensions you might find helpfull" message

$
0
0

I recently updated my VS 2015 Community - works fine - and so does my ASP.Net MVC BootStrap project.

But - I get a very annoying message in my Razor editor like shown here, and even if I say 'Don't show again', as sure as sunsets, it will pop-up again next time I open the project.

And no - it was Not Helpfull in any way.

Has anyone found a stable way to kill these messages once and for all - then please let me know - thanks in advance.


Thomas Elbek

XAML Designer not showing

$
0
0

I recently updated my visual studio and since then XAML deisgner stopped showing, only XAML code windows is visible.

Any solution ?

P.S. Building for Windows 10 Universal APP on build sdk 10.0.10586.15


Viewing all 21115 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>