issue with PostSharp cannot find assembly for system.web.mvc, version=3.0.0.0 when no projects reference it

后端 未结 3 1543
不知归路
不知归路 2021-01-11 23:07

I\'m using PostSharp, and this was working fine. Recently, we upgraded some projects to the MVC version 5.2. Today, I loaded up an old project which was using version 4.0

3条回答
  •  梦毁少年i
    2021-01-11 23:21

    Add the code below inside your [project].csproj file. To achieve this follow the steps:

    • Right-click in your Project;
    • Unload Project;
    • Then right-click in unloaded project and click Edit [project].csproj;
    • Look for a tag of PostSharp;
    • Then add the following code right below the tag;
    • Then Reload the project;

    Code:

    
        web.config
    
    

    Your xml code should look something like:

    
    
        web.config
    
    

提交回复
热议问题