简体   繁体   中英

Build C# ASP.NET solution to different target folder VS2015

I have a web application that I've inherited and the application code is written such that it expects the application to sit in a sub folder

e.g. domain/sub/default.aspx

The application builds fine and I'm able to login but all the paths are expecting the /sub and resources aren't loading. The sub-folder structure needs to be maintained and I do not want to change working code on the application.

Is there any way to configure VS 2015 to build the web application in the sub folder? I'd prefer to not have to deploy in order to test properly

sure! right click on the project and select the properties in the Build tab you can change the output path to be like you want it.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM