-
Notifications
You must be signed in to change notification settings - Fork 151
Can't build CodeContracts - installer building fails #375
Comments
You need to use VS2013. VS2015 is still not supported (the error message looks weird, but even if this one will pass you'll face another issue with VS2015).. |
I was able to reproduce the issue. The error message is indeed weird:
When running on dev cmd for VS2013 with the same version of git (2.7.0.2 x64) everything works fine. |
@SergeyTeplyakov: well... I've built CC about 3 weeks ago successfully from master branch using VS 2015. Moreover, I was able to build it from unpacked ZIP-archive, without git installed, while now I had to clone git repository locally. Definitely something was changed in build scripts (maybe, somewhere else, this is just an assumption). Also note, that CC libraries are built just fine. The case is in installer. Are you sure, that the problem is in VS (MSBuild version)? |
VS2013 Developer Command Prompt plus Git in my path (I think latest Git for Windows) works fine for me, but I am also building from a cloned repository. Could it be that |
@Dennis-Petrov Now, it is clear that something is broken. |
But the question is, why the failure is happening on the git command? I'll try to check it tomorrow (almost 1 a.m. in the morning right now in my time zone). |
@SergeyTeplyakov: I've figured out it. :) There's a typo here (buildMSI10.xml):
The second dash before "assume" has 0x2013 code instead of 0x2D ("minus" key on keyboard). Looks like there several such typos there. These ones too:
|
My fault. PR created. |
Oh good catch, that's a Unicode EN-Dash. So the new question is: Why does it work for me/AppVeyor/etc.? A less pedantic versions of Git? |
@yaakov-h: also, why it does require git / git repo at all now? Do we need to improve README.MD? |
@yaakov-h @Dennis-Petrov I used First commit in #376 fixes an invalid dash character. I was not building CC from VS2015 command prompt so did not encountered the issue before (command prompt for VS2013 works just fine even for the same version of git, so there may be something changed in MSBuild 14.0 regarding encoding). I would like to ask you to take a look at this PR in case there are some other cases I not covered. |
@hubuk: Looks like there's another issue. I've finally build it, but without VB stuff. Literally, I had to remove these projects from solution and their output from WiX script: Microsoft.VisualBasic.Compatibility10 because both of them can't resolve reference to |
@Dennis-Petrov Could you provide a build log file? |
Sure. Added attachment. |
@Dennis-Petrov As @SergeyTeplyakov wrote, building from Visual Studio 2015 is not quite finished yet. Even if it was working before it produced invalid bits due to some rewriter issues with Roslyn (parts of CC are being rewriten too). Anyway, this is an easily reproducible on VS2015 command prompt build. It would be best to raise a separate issue for full VS2015 support with working tests. |
Shouldn't this issue be closed, since we're waiting for complete VS2015 support? |
@Dennis-Petrov I think this issue may remain opened as a reference. But it is up to you. |
I've sent a PR with a couple fixes that allow me to build the project using VS 2015. The PR is associated with #471. |
Hi everyone.
I've forked CC from master branch yesterday, and can't build it via batch file. I'm running
buildcc.bat
from MSBuild command prompt (VS2015) and getting this error:My machine has git 2.7.0.2 x64 installed - I had to install it, because for now it is impossible to build without git at all.
Maybe,
README.MD
misses some details about building process?The text was updated successfully, but these errors were encountered: