VSTS Code Analysis
3 posts • Page 1 of 1
VSTS Code Analysis
I installed Postsharp RC3 today. The compilation performance improvements are great. Also, it looks like it now tries to do code analysis on the assembly generated before the Postsharp processing which is great.
However, it does not work for me. When I try to do a code analysis, it gives me the following error. I checked the "obj\Debug\Before-PostSharp" folder of the project and the project dll is there. I tried cleaning and recompiling the solution without any success. Any ideas?
Thanks,
Dmitry
However, it does not work for me. When I try to do a code analysis, it gives me the following error. I checked the "obj\Debug\Before-PostSharp" folder of the project and the project dll is there. I tried cleaning and recompiling the solution without any success. Any ideas?
- Code: Select all
------ Rebuild All started: Project: [ProjectName], Configuration: Debug Any CPU ------
* Could not load file: '@(IntermediateAssembly->'obj\Debug\Before-PostSharp\[assemblyname].dll'.
MSBUILD : error : CA0055 : * Could not load file: '@(IntermediateAssembly->'obj\Debug\Before-PostSharp\[assemblyname].dll'.
Code Analysis Complete -- 1 error(s), 0 warning(s)
Build FAILED.
Time Elapsed 00:00:09.31
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
Thanks,
Dmitry
Last edited by dstar on Wed May 28, 2008 3:50 am, edited 1 time in total.
- dstar
- Posts: 7
- Joined: Mon Apr 07, 2008 6:18 am
- Last Name: Vasily
Re: VSTS Code Analysis
Ah sorry -- I introduced a bug in something that worked
. And I have no unit test for that since I have to open a special virtual machine...
Anyway, please report a bug for this. I will correct it asap.
I guess the correction is some trivial change in PostSharp-1.0.targets, which you can find on your own if you are MSBuild-litterate.
Gael
Anyway, please report a bug for this. I will correct it asap.
I guess the correction is some trivial change in PostSharp-1.0.targets, which you can find on your own if you are MSBuild-litterate.
Gael
Gael Fraiteur, project leader
- gfraiteur
- Site Admin
- Posts: 835
- Joined: Tue Dec 18, 2007 3:09 pm
- First Name: Gael
- Last Name: Fraiteur
- Company: postsharp.org
Re: VSTS Code Analysis
I created the bug and found how to fix the problem.
Lines 185 and 186 of the "postsharp-1.0.targets" file should be as follows:
Lines 185 and 186 of the "postsharp-1.0.targets" file should be as follows:
- Code: Select all
<!-- Redefine the property where FxCop expects the location of the source file. -->
<CreateProperty Value="$(_PostSharpInputBin)">
- dstar
- Posts: 7
- Joined: Mon Apr 07, 2008 6:18 am
- Last Name: Vasily
3 posts • Page 1 of 1
