Build Error with NuGet packages

lightlike

I am currently trying to set up this structure of Projects:

  • Core (.Net Standard)
    • References: MVVMLightLibsStd10
    • References: ...
  • Desktop (.Net Framework 4.6.1)
    • References: MVVMLightLibsStd10
    • References: ...

When I compile this locally, it works fine but on the Build-Server I get the Error

Error CS0246: The type or namespace name 'GalaSoft' could not be found
(are you missing a using directive or an assembly reference?)

for each time that I reference any of the Nuget packages.

Project can be found here

Build-Log is here

Does anyone have an idea how to fix this?

Marina Liu

You need to install MvvmLightLibs NuGet package into your DSACharacterSheet.Desktop project.

In the App.xaml.cs file, you specified to use below namespaces:

using GalaSoft.MvvmLight.Ioc;
using GalaSoft.MvvmLight.Messaging;
using GalaSoft.MvvmLight.Views;

But they can not be found based on the installed packages. After install MvvmLightLibs package, the namespaces will be valid, and you can build the project successful.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

AppHarbor build error with nuget packages

Error: The build restored NuGet packages. Build the project again to include these packages in the build. For more information

NuGet error restoring packages

Nuget packages not downloaded for Azure build

An error occurred while configuring the solution to restore NuGet packages on build. The operation has timed out

The NuGet Installer task used in TFS 2017 build definition fails to clear the global-packages folder with an error

TeamCity Build Server cannot restore nuget packages

How To Use Nuget Packages in Cake Build Tool

Using Nuget Package Explorer to build packages

Storing nuget packages in alternate location on build server

How to add NuGet packages to the Dockerfile build steps?

'dotnet build' command not finding NuGet packages (they exist)

Nuget restores packages differently on build server

Build projects and create a NuGet packages in one pipeline

Build error, This project references NuGet

Error Occured when trying to install NuGet Packages

Dependencies error while installing packages with NuGet

Visual Studio : Error occurred while restoring nuget packages : There are duplicate packages

Use NuGet build tool packages with ASP.NET Core

Explicitly set the order of build targets defined in NuGet packages

Where is the nuget packages folder located on a hosted build server using TFS?

Create and Publish nuget packages from TFS build process?

TeamCity Nuget Feed does not pick up latest Packages from a build

TFS 2015 Automatically update packages from custom nuget repository on build

Build error when packaging multiple nuget targets

Nuget package restore error in build definition

Nuget restore version conflict build error on VSTS

TeamCity cloned build configuration fails with NuGet error

Adding SourceLink nuget package causes build error

TOP Ranking

HotTag

Archive