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

Issues building thru TFS Build #21

Closed
nlz242 opened this issue Nov 8, 2016 · 6 comments
Closed

Issues building thru TFS Build #21

nlz242 opened this issue Nov 8, 2016 · 6 comments
Labels

Comments

@nlz242
Copy link

nlz242 commented Nov 8, 2016

Building on my computer works fine, but i'm having a hard time building on my build server (TFS 2010).
Using msbuild tools 14.0, targetting .net 4.0.
I get this error :
Sorry for the french-ish stacktrace

D:\Builds\35\MyProject\Sources\packages\DllExport.1.5.0\tools\net.r_eg.DllExport.targets(42,5): error :  [D:\Builds\35\MyProject\Sources\Client\Client.csproj]
     à RGiesecke.DllExport.Parsing.IlParser.RunIlTool(String installPath, String toolFileName, String requiredPaths, String workingDirectory, String settingsName, String arguments, String toolLoggingCode, String verboseLoggingCode, IDllExportNotifier notifier, Int32 timeout, Func`2 suppressErrorOutputLine) dans D:\prg\projects\DllExport\DllExport\RGiesecke.DllExport\Parsing\IlParser.cs:ligne 378
     à RGiesecke.DllExport.Parsing.IlDasm.Run() dans D:\prg\projects\DllExport\DllExport\RGiesecke.DllExport\Parsing\ILDasm.cs:ligne 22
     à RGiesecke.DllExport.DllExportWeaver.RunIlDasm(String tempDirectory) dans D:\prg\projects\DllExport\DllExport\RGiesecke.DllExport\DllExportWeaver.cs:ligne 188
     à RGiesecke.DllExport.DllExportWeaver.Run() dans D:\prg\projects\DllExport\DllExport\RGiesecke.DllExport\DllExportWeaver.cs:ligne 51
     à RGiesecke.DllExport.MSBuild.ExportTaskImplementation`1.Execute() dans D:\prg\projects\DllExport\DllExport\RGiesecke.DllExport.MSBuild\RGiesecke.DllExport.MSBuild\ExportTaskImplementation.cs:ligne 437

Any idea ?

@3F
Copy link
Owner

3F commented Nov 8, 2016

seems exitCode != 0 and in your stack trace I also see that's IlDasm step

So, what settings for this ? Is it our coreclr ?
you can also simply copy all properties of DllExport from your Client.csproj or attach this file if it's possible

Probably I need also full log, you can set /verbosity:detailed or better /verbosity:diagnostic key to msbuild.exe

But, if this problem with IL (like #17) I need also simple example to reproduce it, etc.

@nlz242
Copy link
Author

nlz242 commented Nov 9, 2016

I made a small project with only an Hello World type method.
If i build it on my computer, it works well, but my TF Build server has the same issue.
I included the Diagnostic log, the project and my TF Build template (which is the DefaultTemplate using Toolversion 14.0 & with a call to NuGet restore before build)
As for DllExport, the only option i changed form the default is selected the "x86" radio button instead of "x86+x64" or "x64"
Again, sorry for the french-ish log file.

BuildTest.log.txt
BuildTest.zip
DefaultTemplateWithNuGet.xaml.txt

@3F
Copy link
Owner

3F commented Nov 9, 2016

@nlz242 Thank you for details

Again, sorry for the french-ish log file.

to build with eng. locale, you can use like this:

chcp 437
...
msbuild "YourProject.sln" /t:Build

Well, your problem from calling our ildasm.exe:

D:\Builds\34\1500-MUNIC\CI.Dev.TestBuild\Sources\packages\DllExport.1.5.0\tools\coreclr\ildasm.exe 
/quoteallnames /unicode /nobar /linenum "/out:C:\Users\TFSService\AppData\Local\Temp\tmp2DE8\BuildTest.il" "D:\Builds\34\1500-MUNIC\CI.Dev.TestBuild\Binaries\BuildTest.dll"

But you have no any message from this :( Later I'll try to reproduce this on some TFS.

You can also help to find this problem:

@nlz242
Copy link
Author

nlz242 commented Nov 9, 2016

Well, that fixed it!

I tried to run ildasm manually and got a message saying it can't find api-ms-win-crt-string-l1-1-0.dll.
So i went ahead and installed the VC++ 2015 redist on my build server and now everything builds as it should, without errors!

Thanks a ton for your help! :)

@3F
Copy link
Owner

3F commented Nov 9, 2016

:)

Good !

Thanks a ton for your help! :)

I'm glad that this helped you -_*

@3F 3F closed this as completed Nov 9, 2016
@3F 3F added the wontfix label Nov 9, 2016
@3F
Copy link
Owner

3F commented Nov 9, 2016

VC++ 2015 redist

by the way yes, anyone else, please note that my coreclr version was compiled with MSVC 19.0

-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
/msbuild 14.0.25420.1

3F added a commit that referenced this issue Nov 12, 2016
    * FIXED: Error : Invalid Option: /CVRES= Issue #20
    * NOTE: Our coreclr version was compiled with MSVC 14.0. Related Issue #21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants