2016-03-22 5 views
0

でビルドされません。私が手TFSのビルドは、私は、単純なWebAPIのプロジェクトを作成したWebAPIのプロジェクト

エラーは次のとおりです。 http://pastebin.com/ZPBEFcPN

パッケージ内容:

<?xml version="1.0" encoding="utf-8"?> 
<packages> 
    <package id="Antlr" version="3.4.1.9004" targetFramework="net452" /> 
    <package id="bootstrap" version="3.0.0" targetFramework="net452" /> 
    <package id="EntityFramework" version="6.1.3" targetFramework="net452" /> 
    <package id="jQuery" version="1.10.2" targetFramework="net452" /> 
    <package id="jQuery.Validation" version="1.11.1" targetFramework="net452" /> 
    <package id="Microsoft.ApplicationInsights" version="1.2.3" targetFramework="net452" /> 
    <package id="Microsoft.ApplicationInsights.Agent.Intercept" version="1.2.0" targetFramework="net452" /> 
    <package id="Microsoft.ApplicationInsights.DependencyCollector" version="1.2.3" targetFramework="net452" /> 
    <package id="Microsoft.ApplicationInsights.JavaScript" version="0.15.0-build58334" targetFramework="net452" /> 
    <package id="Microsoft.ApplicationInsights.PerfCounterCollector" version="1.2.3" targetFramework="net452" /> 
    <package id="Microsoft.ApplicationInsights.Web" version="1.2.3" targetFramework="net452" /> 
    <package id="Microsoft.ApplicationInsights.WindowsServer" version="1.2.3" targetFramework="net452" /> 
    <package id="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel" version="1.2.3" targetFramework="net452" /> 
    <package id="Microsoft.AspNet.Identity.Core" version="2.2.1" targetFramework="net452" /> 
    <package id="Microsoft.AspNet.Identity.EntityFramework" version="2.2.1" targetFramework="net452" /> 
    <package id="Microsoft.AspNet.Identity.Owin" version="2.2.1" targetFramework="net452" /> 
    <package id="Microsoft.AspNet.Mvc" version="5.2.3" targetFramework="net452" /> 
    <package id="Microsoft.AspNet.Razor" version="3.2.3" targetFramework="net452" /> 
    <package id="Microsoft.AspNet.Web.Optimization" version="1.1.3" targetFramework="net452" /> 
    <package id="Microsoft.AspNet.WebApi" version="5.2.3" targetFramework="net452" /> 
    <package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net452" /> 
    <package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net452" /> 
    <package id="Microsoft.AspNet.WebApi.HelpPage" version="5.2.3" targetFramework="net452" /> 
    <package id="Microsoft.AspNet.WebApi.Owin" version="5.2.3" targetFramework="net452" /> 
    <package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.3" targetFramework="net452" /> 
    <package id="Microsoft.AspNet.WebPages" version="3.2.3" targetFramework="net452" /> 
    <package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.0" targetFramework="net452" /> 
    <package id="Microsoft.jQuery.Unobtrusive.Validation" version="3.2.3" targetFramework="net452" /> 
    <package id="Microsoft.Net.Compilers" version="1.0.0" targetFramework="net452" developmentDependency="true" /> 
    <package id="Microsoft.Owin" version="3.0.1" targetFramework="net452" /> 
    <package id="Microsoft.Owin.Host.SystemWeb" version="3.0.1" targetFramework="net452" /> 
    <package id="Microsoft.Owin.Security" version="3.0.1" targetFramework="net452" /> 
    <package id="Microsoft.Owin.Security.Cookies" version="3.0.1" targetFramework="net452" /> 
    <package id="Microsoft.Owin.Security.Facebook" version="3.0.1" targetFramework="net452" /> 
    <package id="Microsoft.Owin.Security.Google" version="3.0.1" targetFramework="net452" /> 
    <package id="Microsoft.Owin.Security.MicrosoftAccount" version="3.0.1" targetFramework="net452" /> 
    <package id="Microsoft.Owin.Security.OAuth" version="3.0.1" targetFramework="net452" /> 
    <package id="Microsoft.Owin.Security.Twitter" version="3.0.1" targetFramework="net452" /> 
    <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net452" /> 
    <package id="Modernizr" version="2.6.2" targetFramework="net452" /> 
    <package id="Newtonsoft.Json" version="6.0.4" targetFramework="net452" /> 
    <package id="Owin" version="1.0" targetFramework="net452" /> 
    <package id="Respond" version="1.2.0" targetFramework="net452" /> 
    <package id="WebGrease" version="1.5.2" targetFramework="net452" /> 
</packages> 

Csproj内容: http://pastebin.com/VR2iXs2A

をこれは、ゼロから作られたプロジェクトであり、何も追加されません。

+0

.csprojファイルの内容を投稿する必要があります。あなたが持っているなら、あなたの "packages.config"の。 – granadaCoder

答えて

0

..ただ、V2ごとにパッケージを復元する正しい方法を言及する。.. enter image description here

を聞きません.7+はビルドステップの前にNugetインストーラを追加することです: enter image description here

+0

いいえhttp://blog.davidebbo.com/2014/01/the-right-way-to-restore-nuget-packages.html "古い方法では、VSでソリューションを右クリックし、[パッケージを有効にする]を選択しますVSはあなたのcsprojファイルを変更し、nuget.exeとその他のファイルを含む.nugetフォルダを作成します。彼のブログの手順に従ってください....そして、それが "自動作業"しない場合は、コマンドラインの復元方法を....私の答えから入れてください。 – granadaCoder

0

MVC Nugetパッケージを使用している場合は、Nugetの復元を有効にする必要があります。

Nugetパッケージを使用していない場合は、プロジェクトを右クリックして「デプロイ可能な依存関係を追加」を選択して、デプロイ済みのMVC参照を使用する必要があります。

enter image description here

+0

ソリューションレベルでナルエット復元が有効になっています –

1

実行

nuget.exe restore MySolution.sln 

または

nuget.exe restore MyCsProj.csproj 

あなたは、TFSのビルドしようとする前に。 赤ちゃん、TFSマシンで

これはパッケージを復元する「新しい」方法です。

https://docs.nuget.org/consume/package-restore

重要から:Nuget自動パッケージは復元Nuget 2.7以降に変更されました。 パッケージの自動復元に「古い」方法と新しい方法を混在させないでください。詳細については、以下の「自動パッケージ復元の一般的な問題」を参照してください。

このチェックボックスをオンにしたので、この手順に従わなければならない場合があります。私はビルドステップにオプション「Nugetパッケージを復元する」を有効にするのを忘れていくつかの理由

https://docs.nuget.org/Consume/Package-Restore/Migrating-to-Automatic-Package-Restore

+0

このエラーが発生しました:nuget.exe: 'nuget.exe'という用語は、コマンドレット、関数、スクリプトファイル、または動作可能なプログラムの名前として認識されません。名前のスペルを確認するか、パスが含まれている場合は、パスが正しいことを確認してから、もう一度やり直してください。 –

+0

TFSマシンに(ダウンロードしてどこかに)インストールする必要があります。完全なパスを使用してください。 ex:c:\ MyProgFiles \ Nuget \ v3.3.0 \ nuget.exe(https://dist.nuget.org/index.htmlから入手してください)....そしてビルドスクリプトを "c: MyProgFiles \ Nuget \ v3.3.0 \ nuget.exe "MySolution.sln。可能であれば、ハードコードされたパスの代わりにマクロを使用します。 – granadaCoder

+0

「新しい方法」についてのヒントについては、http://blog.davidebbo.com/2014/01/the-right-way-to-restore-nuget-packages.htmlもお読みください – granadaCoder

関連する問題