metesa / NFOGenerator

An internal tool which can generate NFO with specific form automatically
Apache License 2.0
15 stars 4 forks source link

Build error with xbuild on Linux #9

Closed metesa closed 7 years ago

metesa commented 7 years ago

travis_time:end:02e4bfae:start=1488480081705440466,finish=1488480082286320363,duration=580879897 $ cd metesa/NFOGenerator $ git checkout -qf 3d58f4811d1669a86b14061138bc769d4d48ee36 travis_fold:end:git.checkout  This job is running on container-based infrastructure, which does not allow use of 'sudo', setuid and setguid executables. If you require sudo, add 'sudo: required' to your .travis.yml See https://docs.travis-ci.com/user/workers/container-based-infrastructure/ for details. $ export TRAVIS_SOLUTION=NFOGenerator.sln travis_time:start:03d050cc $ mono --version Mono JIT compiler version 4.8.0 (Stable 4.8.0.495/e4a3cf3 Wed Feb 22 18:30:58 UTC 2017) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdebug LLVM: supported, not enabled. GC: sgen

travis_time:end:03d050cc:start=1488480087975990396,finish=1488480087981303637,duration=5313241 travis_time:start:006aa0b0 $ xbuild /version XBuild Engine Version 14.0 Mono, Version 4.8.0.0 Copyright (C) 2005-2013 Various Mono authors

travis_time:end:006aa0b0:start=1488480087986394236,finish=1488480088033047857,duration=46653621 

travis_time:start:0d8da11e $ nuget restore NFOGenerator.sln [?1h=Added file 'NuGet.Config' to folder '/home/travis/.config/NuGet'. [?1l> travis_time:end:0d8da11e:start=1488480088038177291,finish=1488480089413075913,duration=1374898622 travis_time:start:04f53058 $ xbuild /p:Configuration=Release NFOGenerator.sln XBuild Engine Version 14.0 Mono, Version 4.8.0.0 Copyright (C) 2005-2013 Various Mono authors

Build started 3/2/2017 6:41:29 PM.


Project "/home/travis/build/metesa/NFOGenerator/NFOGenerator.sln" (default target(s)): Target ValidateSolutionConfiguration: Building solution configuration "Release|Mixed Platforms". Target Build: Project "/home/travis/build/metesa/NFOGenerator/NFOGenerator/NFOGenerator.csproj" (default target(s)): Target PrepareForBuild: Configuration: Release Platform: x86 Created directory "bin/Release/" Created directory "obj/x86/Release/" Target ResolveAssemblyReferences: /usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets: warning : Reference 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' not resolved For searchpath {CandidateAssemblyFiles} Warning: {CandidateAssemblyFiles} not supported currently For searchpath {HintPathFromItem} HintPath attribute not found For searchpath {TargetFrameworkDirectory} Considered target framework dir /usr/lib/mono/3.5-api/, assembly named 'Microsoft.VisualBasic.PowerPacks.Vs' not found. Considered target framework dir /usr/lib/mono/2.0-api/, assembly named 'Microsoft.VisualBasic.PowerPacks.Vs' not found. For searchpath {PkgConfig} Considered Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL, but could not find in any pkg-config files. For searchpath {GAC} Considered Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL, but could not find in the GAC. For searchpath {RawFileName} Considered 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' as a file, but the file does not exist For searchpath bin/Release/ Considered '/home/travis/build/metesa/NFOGenerator/NFOGenerator/bin/Release/Microsoft.VisualBasic.PowerPacks.Vs' as a file, but the file does not exist Considered '/home/travis/build/metesa/NFOGenerator/NFOGenerator/bin/Release/Microsoft.VisualBasic.PowerPacks.Vs.exe' as a file, but the file does not exist Considered '/home/travis/build/metesa/NFOGenerator/NFOGenerator/bin/Release/Microsoft.VisualBasic.PowerPacks.Vs.dll' as a file, but the file does not exist Target CreateManifestResourceNames: /usr/lib/mono/xbuild/14.0/bin/Microsoft.CSharp.targets: error : Unable to create resource name for 'Forms/FrmMain.resx',as dependent file /home/travis/build/metesa/NFOGenerator/NFOGenerator/Forms/FrmMain.cs was not found. Task "CreateCSharpManifestResourceName" execution -- FAILED Done building target "CreateManifestResourceNames" in project "/home/travis/build/metesa/NFOGenerator/NFOGenerator/NFOGenerator.csproj".-- FAILED Done building project "/home/travis/build/metesa/NFOGenerator/NFOGenerator/NFOGenerator.csproj".-- FAILED Task "MSBuild" execution -- FAILED Done building target "Build" in project "/home/travis/build/metesa/NFOGenerator/NFOGenerator.sln".-- FAILED Done building project "/home/travis/build/metesa/NFOGenerator/NFOGenerator.sln".-- FAILED

Build FAILED.

Warnings:

/home/travis/build/metesa/NFOGenerator/NFOGenerator.sln (default targets) -> (Build target) -> /home/travis/build/metesa/NFOGenerator/NFOGenerator/NFOGenerator.csproj (default targets) -> /usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets (ResolveAssemblyReferences target) ->

/usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' not resolved

Errors:

/home/travis/build/metesa/NFOGenerator/NFOGenerator.sln (default targets) -> (Build target) -> /home/travis/build/metesa/NFOGenerator/NFOGenerator/NFOGenerator.csproj (default targets) -> /usr/lib/mono/xbuild/14.0/bin/Microsoft.CSharp.targets (CreateManifestResourceNames target) ->

/usr/lib/mono/xbuild/14.0/bin/Microsoft.CSharp.targets: error : Unable to create resource name for 'Forms/FrmMain.resx',as dependent file /home/travis/build/metesa/NFOGenerator/NFOGenerator/Forms/FrmMain.cs was not found.

 1 Warning(s)
 1 Error(s)

Time Elapsed 00:00:00.5694140

travis_time:end:04f53058:start=1488480089418512882,finish=1488480090120921656,duration=702408774  The command "xbuild /p:Configuration=Release NFOGenerator.sln" exited with 1.

Done. Your build exited with 1.

metesa commented 7 years ago

Fix this by moving forms to root folder. The .resx, the .designer.cs and the .cs should be on the same folder. The project file uses the relative path, but the xbuild uses the absolute path. So the root folder seems to be the simplest solution