私は、Visual Studio 2013用のunittestのプロジェクトテンプレートをカスタマイズしたい:私たちは、unittestのプロジェクトに非常に多くの場合、部品番号を使用し、それゆえ私はそれが自動的に参照されるべきだと思います。 C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ProjectTemplates\CSharp\Test\1033\UnitTestProject
でのVisual Studio 2013プロジェクトテンプレートのカスタマイズ
、Iは、基準部とItemGroupを追加することによってUnitTestProject.csproj
編集:
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
...
<Reference Include="Moq, Version=4.2.1510.2205, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
<HintPath>..\packages\Moq.4.2.1510.2205\lib\net40\Moq.dll</HintPath>
<Private>True</Private>
</Reference>
そして私はそのフォルダにファイルpackages.configを加え、そして
<ProjectItem ReplaceParameters="false" TargetFileName="packages.config">packages.config</ProjectItem>
を添加することによってUnitTestProject.vstemplate
編集プロジェクトセクションに移動します。
しかし、私は新しいunittestのプロジェクトを作成するとき、私は[OK]をクリックした後、エラーメッセージ
The file packages.config could not be found within the project templates. Continuing to run, but the resulting project may not build properly.
を取得し、別のエラーメッセージは、次のとおりです。
Unable to copy the file 'packages.config' from the project template to the project. Cannot find file "(%TEMP%\some folder)\packages.config'.
はどのように解決することができますか?