Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Build failed : file not copied in ncrunch workspace
Connes
#1 Posted : Friday, December 5, 2014 10:33:45 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/2/2014(UTC)
Posts: 4
Location: France

Thanks: 2 times
Hi,

I 've one project not build by ncrunch because one of it's file is not copied to the workspace.
I don't talk about of references but one file of the project itself.

This is the only one in this case and i don't see any difference with other project in the solution.

The fiole in question is the EDMX:

Here is my csproj:
Code:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="(- BROKEN LINK -)">
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
    <ProjectGuid>{BD1B2E48-78E7-4FA6-8F47-80A0E640FC21}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Itesoft.ProductionManager.KpiService.ObjectModel</RootNamespace>
    <AssemblyName>Itesoft.ProductionManager.KpiService.ObjectModel</AssemblyName>
    <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
    <TargetFrameworkProfile />
    <SccProjectName>SAK</SccProjectName>
    <SccLocalPath>SAK</SccLocalPath>
    <SccAuxPath>SAK</SccAuxPath>
    <SccProvider>SAK</SccProvider>
    <RestorePackages>true</RestorePackages>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
    <PlatformTarget>x86</PlatformTarget>
    <OutputPath>bin\x86\Debug\</OutputPath>
    <RunCodeAnalysis>true</RunCodeAnalysis>
    <CodeAnalysisRuleSet>..\..\..\..\..\..\build\dotnet\codeAnalysis\ruleset\itesoft_allRules.ruleset</CodeAnalysisRuleSet>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
    <PlatformTarget>x86</PlatformTarget>
    <OutputPath>bin\x86\Release\</OutputPath>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\packages\EntityFramework\lib\net45\EntityFramework.dll</HintPath>
    </Reference>
    <Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\packages\EntityFramework\lib\net45\EntityFramework.SqlServer.dll</HintPath>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Core" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Kpi.cs">
      <DependentUpon>KpiModel.tt</DependentUpon>
    </Compile>
    <Compile Include="KpiModel.Context.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>KpiModel.Context.tt</DependentUpon>
    </Compile>
    <Compile Include="KpiModel.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>KpiModel.tt</DependentUpon>
    </Compile>
    <Compile Include="KpiModel.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>KpiModel.edmx</DependentUpon>
    </Compile>
    <Compile Include="KpiValue.cs">
      <DependentUpon>KpiModel.tt</DependentUpon>
    </Compile>
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <ItemGroup>
    <CodeAnalysisDictionary Include="..\..\..\..\..\..\build\dotnet\codeAnalysis\dictionary\CustomDictionary.xml">
      <Link>CustomDictionary.xml</Link>
    </CodeAnalysisDictionary>
  </ItemGroup>
  <ItemGroup>
    <MultiSGBDEntityDeploy Include="KpiModel.edmx">
      <Generator>EntityModelCodeGenerator</Generator>
      <LastGenOutput>KpiModel.Designer.cs</LastGenOutput>
    </MultiSGBDEntityDeploy>
  </ItemGroup>
  <ItemGroup>
    <None Include="App.config">
      <SubType>Designer</SubType>
    </None>
    <None Include="KpiModel.Context.tt">
      <Generator>TextTemplatingFileGenerator</Generator>
      <LastGenOutput>KpiModel.Context.cs</LastGenOutput>
    </None>
    <None Include="KpiModel.tt">
      <Generator>TextTemplatingFileGenerator</Generator>
      <LastGenOutput>KpiModel.cs</LastGenOutput>
    </None>
    <None Include="packages.config" />
  </ItemGroup>
  <ItemGroup>
    <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <Import Project="..\..\..\..\..\..\build\dotnet\Itesoft.Root.targets" />
  <Import Project="..\..\..\..\..\..\build\tools\.nuget\NuGet.targets" Condition="Exists('..\..\..\..\..\..\build\tools\.nuget\NuGet.targets')" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
  <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
    <PropertyGroup>
      <ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
    </PropertyGroup>
    <Error Condition="!Exists('..\..\..\..\..\..\build\tools\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\..\..\build\tools\.nuget\NuGet.targets'))" />
  </Target>
</Project>


Any ideas ?

Thanks in advance.
CConnes
Remco
#2 Posted : Friday, December 5, 2014 10:45:36 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for sharing this.

When NCrunch identifies files used by a project, it filters the list of included files to ensure only those files that are relevant inside the build get automatically included. NCrunch isn't familiar with the MultiSGBDEntityDeploy project item, so it simply ignores it. The good news is that this is really easy to fix - just include the file using the 'additional files to include' project-level configuration setting. See http://www.ncrunch.net/documentation/reference_project-configuration_additional-files-to-include for more details.

Cheers,

Remco
1 user thanked Remco for this useful post.
Connes on 12/5/2014(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.028 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download