[GH-ISSUE #236] Ubuntu 16.04 NBFC build gives error #208

Closed
opened 2026-02-26 00:32:02 +03:00 by kerem · 5 comments
Owner

Originally created by @ndasim on GitHub (May 6, 2017).
Original GitHub issue: https://github.com/hirschmann/nbfc/issues/236

There are also some warning messages, I'm putting error messages;

Errors:

/home/ndasim/Masaüstü/nbfc-master/NoteBookFanControl.sln (Build) ->
(Build target) ->
/home/ndasim/Masaüstü/nbfc-master/Tests/StagWare.FanControl.Tests/StagWare.FanControl.Tests.csproj (default targets) ->
(EnsureNuGetPackageBuildImports target) ->

	/home/ndasim/Masaüstü/nbfc-master/Tests/StagWare.FanControl.Tests/StagWare.FanControl.Tests.csproj: error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ../../packages/xunit.runner.visualstudio.2.1.0/build/net20/xunit.runner.visualstudio.props.

/home/ndasim/Masaüstü/nbfc-master/NoteBookFanControl.sln (Build) ->
(Build target) ->
/home/ndasim/Masaüstü/nbfc-master/Tests/StagWare.FanControl.Tests/StagWare.FanControl.Tests.csproj (default targets) ->
/usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets (_RecordCleanFile target) ->

	/usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets: error : Could not find a part of the path "/home/ndasim/Masaüstü/nbfc-master/Tests/StagWare.FanControl.Tests/obj/Release/StagWare.FanControl.Tests.csproj.FilesWrittenAbsolute.txt".  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x001cf] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
  at System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) [0x00022] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
  at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x00061] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
  at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
  at System.IO.StreamWriter..ctor (System.String path, System.Boolean append) [0x00008] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool)
  at Microsoft.Build.Tasks.WriteLinesToFile.Execute () [0x00034] in <9a2dbbe2423d49329ebb40cf8a3a9195>:0 

	 3 Warning(s)
	 2 Error(s)
Originally created by @ndasim on GitHub (May 6, 2017). Original GitHub issue: https://github.com/hirschmann/nbfc/issues/236 There are also some warning messages, I'm putting error messages; Errors: ``` /home/ndasim/Masaüstü/nbfc-master/NoteBookFanControl.sln (Build) -> (Build target) -> /home/ndasim/Masaüstü/nbfc-master/Tests/StagWare.FanControl.Tests/StagWare.FanControl.Tests.csproj (default targets) -> (EnsureNuGetPackageBuildImports target) -> /home/ndasim/Masaüstü/nbfc-master/Tests/StagWare.FanControl.Tests/StagWare.FanControl.Tests.csproj: error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ../../packages/xunit.runner.visualstudio.2.1.0/build/net20/xunit.runner.visualstudio.props. /home/ndasim/Masaüstü/nbfc-master/NoteBookFanControl.sln (Build) -> (Build target) -> /home/ndasim/Masaüstü/nbfc-master/Tests/StagWare.FanControl.Tests/StagWare.FanControl.Tests.csproj (default targets) -> /usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets (_RecordCleanFile target) -> /usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets: error : Could not find a part of the path "/home/ndasim/Masaüstü/nbfc-master/Tests/StagWare.FanControl.Tests/obj/Release/StagWare.FanControl.Tests.csproj.FilesWrittenAbsolute.txt". at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x001cf] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool) at System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) [0x00022] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x00061] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 at System.IO.StreamWriter..ctor (System.String path, System.Boolean append) [0x00008] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool) at Microsoft.Build.Tasks.WriteLinesToFile.Execute () [0x00034] in <9a2dbbe2423d49329ebb40cf8a3a9195>:0 3 Warning(s) 2 Error(s) ```
kerem closed this issue 2026-02-26 00:32:02 +03:00
Author
Owner

@hirschmann commented on GitHub (May 7, 2017):

Seems like at least one nuget package could not be restored:

This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  The missing file is ../../packages/xunit.runner.visualstudio.2.1.0/build/net20/xunit.runner.visualstudio.props

Try to run nuget.exe in the nfbc-master folder:
mono nuget.exe restore

If there is no nuget.exe download it:
wget http://nuget.org/nuget.exe
and then import Mozilla trusted root certificates into the mono certificates store:
mozroots --import --sync
Then try to restore the packages again.

<!-- gh-comment-id:299708635 --> @hirschmann commented on GitHub (May 7, 2017): Seems like at least one nuget package could not be restored: ``` This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. The missing file is ../../packages/xunit.runner.visualstudio.2.1.0/build/net20/xunit.runner.visualstudio.props ``` Try to run *nuget.exe* in the nfbc-master folder: `mono nuget.exe restore` If there is no *nuget.exe* download it: `wget http://nuget.org/nuget.exe` and then import Mozilla trusted root certificates into the mono certificates store: `mozroots --import --sync` Then try to restore the packages again.
Author
Owner

@x42x64 commented on GitHub (Jul 1, 2017):

Kind of the same problem here - after trying mono nuget.exe restore the result is:

mono nuget.exe restore 
MSBuild auto-detection: using msbuild version '14.0' from '/usr/lib/mono/xbuild/14.0/bin'. Error parsing solution file at ~/Downloads/nbfc/nbfc/NoteBookFanControl.sln: The assembly name is invalid.

I'm using mono 5.0.1.1 and I'm on the master branch of this repo. Any ideas?

Thanks!

<!-- gh-comment-id:312414320 --> @x42x64 commented on GitHub (Jul 1, 2017): Kind of the same problem here - after trying `mono nuget.exe restore` the result is: mono nuget.exe restore MSBuild auto-detection: using msbuild version '14.0' from '/usr/lib/mono/xbuild/14.0/bin'. Error parsing solution file at ~/Downloads/nbfc/nbfc/NoteBookFanControl.sln: The assembly name is invalid. I'm using mono 5.0.1.1 and I'm on the master branch of this repo. Any ideas? Thanks!
Author
Owner

@x42x64 commented on GitHub (Jul 1, 2017):

Ok, I fixed it by using a stable nuget version.
For some reason wget http://nuget.org/nuget.exe pulls the most recent nuget version (4.3.0-preview3) and not the last stable one. With the last stable 4.1.0 I was able to build nbfc sucessfully on Ubuntu 16.04

<!-- gh-comment-id:312415123 --> @x42x64 commented on GitHub (Jul 1, 2017): Ok, I fixed it by using a stable nuget version. For some reason `wget http://nuget.org/nuget.exe` pulls the most recent nuget version (4.3.0-preview3) and not the last stable one. With the last stable 4.1.0 I was able to build nbfc sucessfully on Ubuntu 16.04
Author
Owner

@hirschmann commented on GitHub (Jul 10, 2017):

Actuelly, the version that wget pulls is outdated. Therefore the build script updates nuget via mono nuget.exe update -self

Unfortunately nuget always updates to the latest version, no matter if it's stable or a preview. According to the nuget team this behavior is intended.

I currently don't have a solution for this problem. Some of NBFC's dependencies require an up to date nuget.exe, so I can't just remove the self update from the build script.

<!-- gh-comment-id:314179659 --> @hirschmann commented on GitHub (Jul 10, 2017): Actuelly, the version that wget pulls is outdated. Therefore the build script updates nuget via `mono nuget.exe update -self` Unfortunately nuget always updates to the latest version, no matter if it's stable or a preview. [According to the nuget team](https://github.com/NuGet/Home/issues/3562) this behavior is intended. I currently don't have a solution for this problem. Some of NBFC's dependencies require an up to date nuget.exe, so I can't just remove the self update from the build script.
Author
Owner

@hirschmann commented on GitHub (Jul 14, 2017):

I think I have found a good solution to the "nuget update problem":

The build scripts now download the "latest recommended version" of nuget and update nuget manually, if the attempt to restore the packages fails.

<!-- gh-comment-id:315453245 --> @hirschmann commented on GitHub (Jul 14, 2017): I think I have found a good solution to the "nuget update problem": - 92e7edf4a48eb415e5afdaa1bb99c3e856b7e6e8 - 31d43285c64ae0a4877c5ff1a003a096c8ec8db7 The build scripts now download the "latest recommended version" of nuget and update nuget manually, if the attempt to restore the packages fails.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nbfc-hirschmann#208
No description provided.