简体   繁体   English

为什么Visual Studio Web App无法更新DLL

[英]why is Visual Studio Web App not updating DLL

I have a Visual Studio web app that i have taken over from an old company employee. 我有一个Visual Studio Web应用程序,该应用程序已由老公司员工接管。

The whole site looks like its split into two parts a main site and a secondary site in a folder within the main site. 整个站点看起来像将其分为两个部分:主站点和主站点内文件夹中的辅助站点。

The main site seems to update all code when accessed so if i update a .cs file and brows the website it changes. 主站点似乎在访问时会更新所有代码,因此如果我更新.cs文件并浏览其更改的网站。

The secondary site does not do this and has a dll file that is somehow associated with the site. 辅助站点不执行此操作,并且具有以某种方式与该站点关联的dll文件。

If i de compile the dll file is gives me the code held in .cs files for all pages. 如果我de编译dll文件是给我所有页面的.cs文件中包含的代码。

The problem i have is if i change any code in .cs file and Build the site nothing changes. 我的问题是,如果我更改.cs文件中的任何代码并构建站点,则没有任何更改。

I know the site is setup as a web app in VS and have tried Build, Rebuild and publishing to a local folder on local IIS where i am testing everything 我知道该站点已在VS中设置为Web应用程序,并尝试在我正在测试所有内容的IIS上进行构建,重建和发布到本地IIS的本地文件夹

If i delete the DLL file then the site refuses to build coming up with multiple errors 如果我删除DLL文件,则该站点拒绝构建,并出现多个错误

As i am fairly new to asp.net and C# i am now at a total loss on what to try next 因为我对asp.net和C#相当陌生,所以现在完全不知所措

Any assistance would be appreciated 任何援助将不胜感激

Try this. 尝试这个。

Clean and rebuild the solution. 清洁并重建解决方案。 If that does not work then try to move the file to a new PC entirely, make the changes you want, clean and build the solution. 如果那不起作用,则尝试将文件完全移动到新PC上,进行所需的更改,清理并构建解决方案。 You should be fine. 你应该没事的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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