Child pages
  • Build Process MP2


Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: It says to run nuget.exe on each packages.config, but that doesn't work. I think you need to run nuget restore in each folder with a packages.config.

...

  • Download

    Code Block
    languagexml
    NuGet.exe

    , if missing

  • Search repository root incl. sub-directories for

    Code Block
    languagexml
    packages.config

    -files.

  • Call

    Code Block
    languagexml
    NuGet.exe restore

    for each

    Code Block
    languagexml
    packages.config

    file that has been found
    *Why is this? step separated?*
    The NuGet dependencies are also downloaded by the

    Code Block
    languagexml
    *.csproj

    itself, why is this separated step required?
    Short Answer
    Normally packages are downloaded after the project has been opened, but some packages have to be locally available even before the project is opened.
    Detailed Answer
    Some packages include a MSBuild targets file into the project that referenced the package. If the project is opened while the package and it's MSBuild tagets file do not exist yet, the target file is ignored. While compiling the project the referenced package is downloaded and the MSBuild file exists then, but the project does not call it as it has been ignored on project opening.
    The project compiles fine and calls the MSBuild targets file after it has been reopened.
    See also

...