Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code contracts doesn't work with roslyn? #6

Open
scottcarr opened this issue Mar 24, 2015 · 0 comments
Open

code contracts doesn't work with roslyn? #6

scottcarr opened this issue Mar 24, 2015 · 0 comments

Comments

@scottcarr
Copy link
Owner

I enabled code contract checking in roslyn\Src\Compilers\Core\Portable\CodeAnalysis and I get:

C:\Users\carr27\Documents\GitHub\roslyn\src\Compilers\Core\Portable\CodeAnalysis.csproj(667,3): warning MSB4011: "C:
Users\carr27\Documents\GitHub\roslyn\src\Compilers\Core\Portable\Common.CodeContracts.props" cannot be imported again.
It was already imported at "C:\Users\carr27\Documents\GitHub\roslyn\src\Compilers\Core\Portable\CodeAnalysis.csproj (66
6,3)". This is most likely a build authoring error. This subsequent import will be ignored.

"C:\Users\carr27\Documents\GitHub\roslyn\src\RoslynLight.sln" (default target) (1) ->
"C:\Users\carr27\Documents\GitHub\roslyn\src\Compilers\Core\CodeAnalysisTest\CodeAnalysisTest.csproj" (default target)
(2) ->
"C:\Users\carr27\Documents\GitHub\roslyn\src\Test\Utilities\TestUtilities.csproj" (default target) (4) ->
"C:\Users\carr27\Documents\GitHub\roslyn\src\Compilers\Core\Desktop\CodeAnalysis.Desktop.csproj" (default target) (5) -

"C:\Users\carr27\Documents\GitHub\roslyn\src\Compilers\Core\Portable\CodeAnalysis.csproj" (default target) (6) ->
(CreateCodeContractReferenceAssembly target) ->
C:\Program Files (x86)\Microsoft\Contracts\MsBuild\v12.0\Microsoft.CodeContracts.targets(343,5): error MSB3073: The c
ommand ""C:\Program Files (x86)\Microsoft\Contracts\Bin\ccrefgen.exe" "@obj\Debug\CodeAnalysisccrefgen.rsp"" exited wit
h code 1. [C:\Users\carr27\Documents\GitHub\roslyn\src\Compilers\Core\Portable\CodeAnalysis.csproj]

1 Warning(s)
1 Error(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant