I'm trying to integrate starcounter with visual studio 2013 by installing starcounter but this is not happening, how do I integrate with visual, after integrating how to create a simple project with starcounter.Thanks in advanced.
Starcounter 2.3 and newer does not support Visual Studio 2013 anymore, as presented on the https://starcounter.io/download/ page ("System Requirements"). Currently VS 2015 and 2017 are supported.
I think the only thing that needs to be integrated is creating a project from the template. Building is done by MSBuild, so I don't think VS version affects it.
Try to copy an existing project (e.g. https://github.com/StarcounterApps/KitchenSink) and change it to your liking. You will need to do some manual steps to add new pages:
Open your csproj file in an editor
add an entry for json file
<ItemGroup>
<TypedJSON Include="RadioPage.json">
<Generator>MsBuild:Compile</Generator>
</TypedJSON>
</ItemGroup>
add an entry for code-behind
<Compile Include="RadioPage.json.cs">
<DependentUpon>RadioPage.json</DependentUpon>
</Compile>
There may be a way to do this in a less manual way, but I don't know how to add dependent file in VS
In the docs, you can see how the Starcounter templates look and read how to use Starcounter without Visual Studio or the extension.
In short, it's no problem using Starcounter with Visual Studio 2013, although, you will miss out on some of the benefits that the extension come with.
Related
I have developed a project (AngularJS, NodeJS, ExpressJS) with Visual Studio 2015 (.sln) in Windows, and want to know how I can open it with Visual Studio Code in iOS.
Thanks!
Visual Studio Code is meant to be a powerful editor and not a full IDE. So, it isn't designed to work with project files (.sln or .csproj).
If you want to use your project created in Windows, then create a .NET Core application. See, more information on the .NET Core.
Also, check out this explanation by Benjamin Pasero.
I am trying to extend some functionality using VSIX.
When I double click on the VSIX installer it, the following screen pops up. Visual studio 2013 is the only option it provides. But we use Visual studio 2010 for our development.
Can something suggest how to modify the manifest file and steps to make this VSIX 2010 compatible?
Thank you
No, you will most likely have to get the source code of the existing extension, and then build a new one for vs 2010 using the 2010 sdk
As ErikEJ already said, you need to use VSIX Manifest Version 1.
I did it using the instructions here. There is documentation of VSIX Manifest Version 1 here.
You must target Framework Version 4, but there is no need to build with Visual Studio 2010.
I very new to TypeScript. What is the right way of using TypeScript in Visual Studio 2013 update 3? Firstly i installed TypeScript for Visual Studio 2013. But i did not get anything. When i uninstalled TypeScript for Visual Studio 2013 extension and installed web essentials for VS 2013 update 3. I actually got type script support but only when i make new project. For existing project made with VS 2013 too i can not get compile on save. I checked Tools-> options-> Text editor-> TypeScript > Project to Enable Automatic compiling, but in this section VS tells me that some error occurs during loading. Recently i figured out that VS 2013 should have typescript support out of box. Is this mean that i don`t need Web Essentials? I just want to get compiling on save for VS 2013 what should i do?
To convert existing web project to Typescript aware and get Typescript Build tab in project properties you will need to add a bunch of stuff into your project file via text editor.
Add the following element at the top of Project element:
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props" Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props')" />
Add the following to conditionless PropertyGroup element
<TypeScriptToolsVersion>1.4</TypeScriptToolsVersion>
or 1.1 if I remember correctly previous version in case you have not 1.4 installed
Final nugget should go to the bottom of Project lemenet
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets" Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets')" />
This helped me once, but perhaps those instructions are too cumbersome and it will be easier to create new Typescript project and see what is in there related to Typescript
I used Visual Studio 2010 to develop a web application. I formatted my machine and installed Visual Studio 2010 Professional. When I try to open old projects, I get an error saying:
The selected file is a solution file, but was created by a newer version of this application and cannot be opened.
I do not remember the version of visual studio 2010 I used the first time.
Can anyone tell me which version came after the professional edition?
Make sure VS2010 is updated to the latest service pack, otherwise check to see if the project was actually made in VS2012/13 in which case you will need to create a new VS2010 solution and rebuild it from your existing projects.
Open the .sln file in a text editor. In the beginning there is a marker which tells the VS version it is meant for. For VS 2010 it should look like that:
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
You should be able to change these values without any problems. As far as I know the file format did not change.
EDIT
Considering the comment of Dumisani: of course you need to target .net 4.0 and make sure no features of .net 4.5 are used!
Chances are you had a service pack installed that you are missing with a clean installation.
We started using VS 2010 and were very happy with it, so we converted our project into a 2010 solution (still .net 3.5) and continued our development in 2010. However, we are getting a lot of bugs recently and want to go back to 2008. The solution files have changed (new projects and files added everywhere), but everything is still in .net 3.5. I was wondering if there is an easy way to migrate back to 2008.
Depending on if they kept the solution file structure similar between 2008 and 2010, you just need to create an empty solution file in 2008 and look at the top identifier line in it, and copy it into the other solution file.
I however doubt they kept it the same since they were integrating a number of features into solution files.
You would be better off to create a new blank solution in 2008 and use "Add existing project" to reimport them. As long as you dont have any custom "solution" wide references this will work (no solution folders, server setups, etc).
It is probably the fastest and most direct route.
I had success changing the first 2 lines from:
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
to
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Assuming that your solution is under source control and the migration from VS 2008 to VS 2010 was the only change in that checkin, just compare the two version and see what's changed.
Then change the lines affected back to the VS 2008 version and you should be good to go.
There's no automatic process as Microsoft see this as a one way operation.
You can manually edit .sln file in text editor. There is field named version, or like that, just change it from 10 to 9.
This question
How does one convert a Visual Studio .NET 2008 solution to Visual Studio .NET 2005?
might also be applicable for converting from 2010 back to 2008.
You can use "Project Converter":
http://www.emmet-gray.com/Articles/ProjectConverter.htm
I have just found it. I am going to test it right now! :-)
Please try the following (find first line and replace to second line to convert 2010 solution to 2008):
TargetFrameworkMoniker = ".NETFramework,Version=v2.0"
TargetFramework = "3.5"
# Visual Studio 10
# Visual Studio 2008
Microsoft Visual Studio Solution File, Format Version 11.00
Microsoft Visual Studio Solution File, Format Version 10.00
<Project ToolsVersion="4.0"
<Project ToolsVersion="3.5"
<ProductVersion>10.0.20506</ProductVersion>
<ProductVersion>9.0.30729</ProductVersion>
\VisualStudio\v10.0\
\VisualStudio\v9.0\
<Import Project="$(MSBuildToolsPath)\Workflow.Targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Windows Workflow Foundation\v3.5\Workflow.Targets" />
This worked on my solutions, you can try to see if it fit to your cases.
as maZZoo tells, you have to replace those lines in .sln, but if you check you Output panel you may have an alert of using ToolsVersion="4.0", you have to replace that in the .csproj to:
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">