Determining which version of Visual Studio an old C# project was developed
I'm asked to make some changes in an old C#
ASP.NET Web project
developed in Visual Studio
. But I'm unable to successfully open the project in Visual Studio 2017. There are no database connection related errors either. The C# developer of the project is not available anymore and there is no documentation. Question: Is there any info in config file or some other file (.cssproj etc.
) in a C# web project that can help determine what version of Visual Studio was used so I can try to open the project in that particular version of the Visual Studio?
c# asp.net visual-studio
add a comment |
I'm asked to make some changes in an old C#
ASP.NET Web project
developed in Visual Studio
. But I'm unable to successfully open the project in Visual Studio 2017. There are no database connection related errors either. The C# developer of the project is not available anymore and there is no documentation. Question: Is there any info in config file or some other file (.cssproj etc.
) in a C# web project that can help determine what version of Visual Studio was used so I can try to open the project in that particular version of the Visual Studio?
c# asp.net visual-studio
1
For .sln files, see gist.github.com/DanAtkinson/3f863464a5dadd93b8e4dea6fe7b973a
– Peter B
Nov 13 '18 at 22:24
add a comment |
I'm asked to make some changes in an old C#
ASP.NET Web project
developed in Visual Studio
. But I'm unable to successfully open the project in Visual Studio 2017. There are no database connection related errors either. The C# developer of the project is not available anymore and there is no documentation. Question: Is there any info in config file or some other file (.cssproj etc.
) in a C# web project that can help determine what version of Visual Studio was used so I can try to open the project in that particular version of the Visual Studio?
c# asp.net visual-studio
I'm asked to make some changes in an old C#
ASP.NET Web project
developed in Visual Studio
. But I'm unable to successfully open the project in Visual Studio 2017. There are no database connection related errors either. The C# developer of the project is not available anymore and there is no documentation. Question: Is there any info in config file or some other file (.cssproj etc.
) in a C# web project that can help determine what version of Visual Studio was used so I can try to open the project in that particular version of the Visual Studio?
c# asp.net visual-studio
c# asp.net visual-studio
asked Nov 13 '18 at 22:22
namnam
4,1281451115
4,1281451115
1
For .sln files, see gist.github.com/DanAtkinson/3f863464a5dadd93b8e4dea6fe7b973a
– Peter B
Nov 13 '18 at 22:24
add a comment |
1
For .sln files, see gist.github.com/DanAtkinson/3f863464a5dadd93b8e4dea6fe7b973a
– Peter B
Nov 13 '18 at 22:24
1
1
For .sln files, see gist.github.com/DanAtkinson/3f863464a5dadd93b8e4dea6fe7b973a
– Peter B
Nov 13 '18 at 22:24
For .sln files, see gist.github.com/DanAtkinson/3f863464a5dadd93b8e4dea6fe7b973a
– Peter B
Nov 13 '18 at 22:24
add a comment |
3 Answers
3
active
oldest
votes
Open the .sln file and at the top you will see something like this:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
This means it was created in Visual Studio 14.0.25420.1 (Visual Studio 2015 Update 3) but the minimum version you can use to open it to maintain backwards compatibility is is 10.0.40219.1, which is actually Visual Studio 2010 SP1.
add a comment |
Look into .config, .proj file, and .sln file, those files usually have information about what framework version being targetted. And once you know the version you can simply google which Visual studio to use.
add a comment |
The .sln
can sometimes have the information you are looking for.
For instance this is the beginning of the solution I am working with. Note, however, that everyone uses this solution in Visual Studio 2017 and JetBrains' Rider yet it still has VS 2015 floating around in it because that's what it was originally created in. EDIT: Just looked at the link @PeterB posted and this is a VS 2017 format.
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2036
MinimumVisualStudioVersion = 10.0.40219.1
Project("FAE04EC0-301F-0000-0000-00C04F79EFBC") = "ABC", "ABC.WebABC.Web.csproj", "71F88F58-85B4-0000-0000-105C954AA99E"
EndProject
The solution file can have different formats and I am pretty sure a solution created in VS 2017 will yield a slightly different structure.
For the project you may also be able to tell based on the ToolsVersion
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53290413%2fdetermining-which-version-of-visual-studio-an-old-c-sharp-project-was-developed%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Open the .sln file and at the top you will see something like this:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
This means it was created in Visual Studio 14.0.25420.1 (Visual Studio 2015 Update 3) but the minimum version you can use to open it to maintain backwards compatibility is is 10.0.40219.1, which is actually Visual Studio 2010 SP1.
add a comment |
Open the .sln file and at the top you will see something like this:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
This means it was created in Visual Studio 14.0.25420.1 (Visual Studio 2015 Update 3) but the minimum version you can use to open it to maintain backwards compatibility is is 10.0.40219.1, which is actually Visual Studio 2010 SP1.
add a comment |
Open the .sln file and at the top you will see something like this:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
This means it was created in Visual Studio 14.0.25420.1 (Visual Studio 2015 Update 3) but the minimum version you can use to open it to maintain backwards compatibility is is 10.0.40219.1, which is actually Visual Studio 2010 SP1.
Open the .sln file and at the top you will see something like this:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
This means it was created in Visual Studio 14.0.25420.1 (Visual Studio 2015 Update 3) but the minimum version you can use to open it to maintain backwards compatibility is is 10.0.40219.1, which is actually Visual Studio 2010 SP1.
answered Nov 13 '18 at 22:45
AmanAman
10327
10327
add a comment |
add a comment |
Look into .config, .proj file, and .sln file, those files usually have information about what framework version being targetted. And once you know the version you can simply google which Visual studio to use.
add a comment |
Look into .config, .proj file, and .sln file, those files usually have information about what framework version being targetted. And once you know the version you can simply google which Visual studio to use.
add a comment |
Look into .config, .proj file, and .sln file, those files usually have information about what framework version being targetted. And once you know the version you can simply google which Visual studio to use.
Look into .config, .proj file, and .sln file, those files usually have information about what framework version being targetted. And once you know the version you can simply google which Visual studio to use.
answered Nov 13 '18 at 22:26
venuvenu
63111
63111
add a comment |
add a comment |
The .sln
can sometimes have the information you are looking for.
For instance this is the beginning of the solution I am working with. Note, however, that everyone uses this solution in Visual Studio 2017 and JetBrains' Rider yet it still has VS 2015 floating around in it because that's what it was originally created in. EDIT: Just looked at the link @PeterB posted and this is a VS 2017 format.
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2036
MinimumVisualStudioVersion = 10.0.40219.1
Project("FAE04EC0-301F-0000-0000-00C04F79EFBC") = "ABC", "ABC.WebABC.Web.csproj", "71F88F58-85B4-0000-0000-105C954AA99E"
EndProject
The solution file can have different formats and I am pretty sure a solution created in VS 2017 will yield a slightly different structure.
For the project you may also be able to tell based on the ToolsVersion
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
add a comment |
The .sln
can sometimes have the information you are looking for.
For instance this is the beginning of the solution I am working with. Note, however, that everyone uses this solution in Visual Studio 2017 and JetBrains' Rider yet it still has VS 2015 floating around in it because that's what it was originally created in. EDIT: Just looked at the link @PeterB posted and this is a VS 2017 format.
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2036
MinimumVisualStudioVersion = 10.0.40219.1
Project("FAE04EC0-301F-0000-0000-00C04F79EFBC") = "ABC", "ABC.WebABC.Web.csproj", "71F88F58-85B4-0000-0000-105C954AA99E"
EndProject
The solution file can have different formats and I am pretty sure a solution created in VS 2017 will yield a slightly different structure.
For the project you may also be able to tell based on the ToolsVersion
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
add a comment |
The .sln
can sometimes have the information you are looking for.
For instance this is the beginning of the solution I am working with. Note, however, that everyone uses this solution in Visual Studio 2017 and JetBrains' Rider yet it still has VS 2015 floating around in it because that's what it was originally created in. EDIT: Just looked at the link @PeterB posted and this is a VS 2017 format.
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2036
MinimumVisualStudioVersion = 10.0.40219.1
Project("FAE04EC0-301F-0000-0000-00C04F79EFBC") = "ABC", "ABC.WebABC.Web.csproj", "71F88F58-85B4-0000-0000-105C954AA99E"
EndProject
The solution file can have different formats and I am pretty sure a solution created in VS 2017 will yield a slightly different structure.
For the project you may also be able to tell based on the ToolsVersion
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
The .sln
can sometimes have the information you are looking for.
For instance this is the beginning of the solution I am working with. Note, however, that everyone uses this solution in Visual Studio 2017 and JetBrains' Rider yet it still has VS 2015 floating around in it because that's what it was originally created in. EDIT: Just looked at the link @PeterB posted and this is a VS 2017 format.
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2036
MinimumVisualStudioVersion = 10.0.40219.1
Project("FAE04EC0-301F-0000-0000-00C04F79EFBC") = "ABC", "ABC.WebABC.Web.csproj", "71F88F58-85B4-0000-0000-105C954AA99E"
EndProject
The solution file can have different formats and I am pretty sure a solution created in VS 2017 will yield a slightly different structure.
For the project you may also be able to tell based on the ToolsVersion
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
edited Nov 13 '18 at 22:37
answered Nov 13 '18 at 22:31
TyCobbTyCobb
7,41412244
7,41412244
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53290413%2fdetermining-which-version-of-visual-studio-an-old-c-sharp-project-was-developed%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
For .sln files, see gist.github.com/DanAtkinson/3f863464a5dadd93b8e4dea6fe7b973a
– Peter B
Nov 13 '18 at 22:24