简体   繁体   中英

Adding new files to the Solution file for asp.net

I have an already existing solution file for my live website. If I add any new files(.aspx page) in my project, I have to explicitly add those new files to the solution by right clicking on the project -> Add -> Existing item -> selecting the files.

Now, after adding the files for the first time, I added few more files later. During that time, I found that the files which I added in my first deployment were missing and I had to add the old files again with the new ones?

Am I doing anything wrong or is that the way it works? Do I need to add all the new files explicitly to the solution every time before publishing to the server?

The issue which I was facing was because my project's ".csproj" file was not getting updated while deploying the project. It is ".csproj" file which keeps track of all the files which have being added newly. Once I updated the particular file in my production environment, I was able to see all my project files and it didn't require manual intervention. Thanks all for your help.

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