How to properly move an ASP.NET website to a VS2013 website project or website application?

Ahelbling
Ahelbling used Ask the Experts™
on
I am looking for how to properly move an ASP.NET website to a VS2013 website project or website application?

Thanks,
Andrew
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior Software Engineer
Top Expert 2009
Commented:
My suggestion is to move to VS 2013 website project, the pro/cons are explained here:
https://msdn.microsoft.com/en-us/library/dd547590(v=vs.110).aspx

Regarding migrating to VS2013, it depends  how the security is setup and also how old is your site,(e.g. pre .NET 2.0??), For a realtive new site (VS 2008/2010) my suggestion will be:
1. Create a new VS 2013 website project with the correct security defaults.
2. Check that default libraries (versions) are compatible with your current code base. Not only .NET but also say Jquery.
3. Add any third party libraries (C#, JS, CSS that you use in your site
4. Move all your files to your new project. This is the tricky part when versioning becomes an issue and you need to evaluate whe
5. Compile and build.
6. Troubleshoot and update any issues found in 5.

Assumption: You must do a code audit to determine what versions of C#, JS, CSS etc. you are using and identify any dependencies. If you have not done it before a consultant will be needed as it is a big project. Some projects could be upgraded directly but VS upgrade is not that clever to update all dependencies and you may miss the new enhancements.

Author

Commented:
Thanks.  Do I move all files AND folders?  Web.config too?

ss
Miguel OzSenior Software Engineer
Top Expert 2009

Commented:
Only files and folders. Web config contents have to be merged, so you can benefit from the new references tools that comes with it, please check link below for more details:
https://msdn.microsoft.com/en-us/library/aa983476.aspx
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

Dirk StraussSenior Full Stack Developer
Distinguished Expert 2017

Commented:
In what version of Visual Studio was this ASP.NET Website created? The new Web project will also need the web.config file.

Author

Commented:
The website was built using vs2013 and I will be using vs2013 to create the project as well.
Miguel OzSenior Software Engineer
Top Expert 2009

Commented:
In that case, the link I sent you in my previous comment is fully relevant. It is an step by step procedure on how to do it, but as always they do not take in account every possible scenario, thus the reason to to a third party/feature code audit before conversion starts
https://msdn.microsoft.com/en-us/library/aa983476.aspx
Dirk StraussSenior Full Stack Developer
Distinguished Expert 2017

Commented:
Miguel's solution was very well researched.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial