I have gotten quite use to being able to use lambda throughout my c# projects and in Visual Studio 2015 preview I can now use my properties as so:
public ObservableCollection<WorkspaceViewModel> Workspaces => workspaces ?? (workspaces = new ObservableCollection<WorkspaceViewModel>());
or
public string Something => something;
However when switching between Visual Studio 2015 and 2013... 2013 doesn't like them :(
Is there a way I can force 2013 to read these expressions and compile them properly, I understand MSbuild is open source now, do I have to tell 2013 to use a new version of MSbuild?
Cheers.
This is a c# 6 feature, you can get it working in VS 2013 but it seems that is no longer updated and was just used for previews.
How can I add C# 6.0 to Visual Studio 2013?
From the Roslyn site it says
You can also try April's End User Preview, which installs on top of
Visual Studio 2013. (note: this VS 2013 preview is quite out of date,
and is no longer updated)
Who knows if it will come out in VS2013 again...
Related
I have a project from VS Studio 2010 that I want to work with in VS 2015. When I start this Project with VS 2015 I receive an error saying something like "compatibility-Error (Version)".
How can I successfully convert a Visual Studio 2010 project to use with Visual Studio 2015?
Without you going into any more detail about the actual error. (error numbers / screenshot) it will be very hard for any of us to give a real answer. Therefore I am going to suggest you take a look at Troubleshooting Unsuccessful Project Upgrades.
Something else to check out might be the Porting, Migrating, and Upgrading Visual Studio Projects guide
One of the key things mentioned in the 2nd link I provided is:
The following list describes support in Visual Studio 2015 and Visual Studio 2013 for projects that were created in Visual Studio 2012 or Visual Studio 2010 SP
Therefore I'd recommend upgrading the 2010 version to SP1 first. (if this is still installed that is)
One further thing to note is that if you keep the old version of Visual studio installed you can import a project which is made with an older version and skip the update. Visual studio 2015 will then use parts of the older version itself to open the project.
For details you can read How to: Upgrade Visual C++ Projects to Visual Studio 2015 page and the equally useful Installing Visual Studio Versions Side-by-Side page.
It appears that there are issues when moving from VS 2010.Net to VS 2015.Net and may require that you build the project from scratch and copy the code over. VS 2015 requires a Namespace. There are a number of designer issues on control that require the style page be used since various attributes have been removed. Something still, however, do work but you need to review the HTML, specifically things like Font and alignment. While it's a pain it isn't a big deal since it requires mostly cut and paste.
If you are having issues converting web projects the projects may have originally been created as a "web site" rather than a "web Project" . Try opening the application as a web site and see what happens. At least that may help get you to the point you can actually get to the code to convert it in VS 2015. Hope this helps.
Try to Right-click the solution, then select "Re-target solution".
I recently started a new job, and got a machine with Visual Studio 2013 Proffesional installed. This would be great, except the colleague that I'm working with is using Visual Studio 2010. As far as I know, there is no way to work on the same project (or solution), without having quite a lot of issues, is this correct?
And if so, is it still possible to download Visual Studio 2010 (from a reliable source)? I cannot seem to find it anywhere in my MSDN subscriber downloads. All I can find is a stuff like service packs, tools, etc. Did they terminate the support of it?
You work on visual studio 2013 but there are option to select which version of visual studio you want select 2010 and run your project.
You should be able to open Visual Studio 2013 solutions in 2010, if you install Visual Studio 2010 SP1. There is a possibility that some project types won't be supported, but the solution should open.
We just switched over to VS 2013 and I heard that you're supposed to be able to
generate code maps for your entire application. Awesome feature indeed, that could
get new developers on our project up to speed.
Watched a couple of tutorials, but when I tried to just right click on a method
in the application, the 'Show on Code Map' context menu is missing. In fact, I
can't find anything in VS that has anything to do with Code Maps.
My version:
Visual Studio Premium 2013
I tried installing Modeling SDK for Microsoft Visual Studio 2013, but that didn't do anything.
Anyone got any ideas?
You need Visual Studio ULTIMATE to create Code Maps.
http://msdn.microsoft.com/en-us/library/jj739835.aspx
This has changed for Visual Studio 2015 and Visual Studio 2017:
The Enterprise Edition allows creating code maps.
The Community and Professional Editions can open diagrams generated in other Visual Studio editions in read-only mode.
Was anyone able to get the Roslyn C# Colorizer VS extension working?
I've installed it and under settings I can customize the colors and everything however I'm not seeing the results, I was particularly looking to colorize method calls just like it is on the demo screenshot from the gallery:
http://visualstudiogallery.msdn.microsoft.com/5b1a493f-740e-4428-9fe9-65b0028380f3/
You need Roslyn installed. This means either installing Visual Studio 2014 or installing the End User Preview for Visual Studio 2013. https://roslyn.codeplex.com/ Note: the End User Preview is no longer updated, so if you want to use this with the latest features then you will need Visual Studio 2014.
I originally created an ASP.NET site in Visual Studio 2010 a few years ago and it went through the VS 2010 SP1 update as well. This meant that Visual Studio 2012 opened the solution without performing a one time upgrade.
The issue I am having is that the built-in browser selector in Visual Studio 2012 is not available for this project and the settings only let you use the default browser.
When I looked in the .SLN file, the version line indicates Visual Studio 2012 (i.e. # Visual Studio 2012) and no other setting in there appears to have anything to do with this limitation.
Has anybody had this issue and, if so, can you please let me know how your overcame it?
Thanks!
You're going to have to upgrade your project to allow it to make use of Visual Studio 2012 only features. Note, if you do this you will no longer be able to open your project in earlier versions of VS.
http://msdn.microsoft.com/en-us/library/hh266747%28VS.110%29.aspx
For VS 2010 , you can install WoVS Default Browser Switcher extension
Also a related question Change default browser in Visual Studio 2010 RC