Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build was failed when adding Prig assembly for 3rd party library. #5

Closed
urasandesu opened this issue Jul 6, 2014 · 0 comments
Closed
Labels
Milestone

Comments

@urasandesu
Copy link
Owner

When I added Prig assembly for 3rd party library, I got the following build error:

CS0234: The type or namespace name 'ComponentModel' does not exist in the namespace 'System' (are you missing an assembly reference?) [C:\Users\User\Documents\Visual Studio 2013\Projects\ConsoleApplication1\ConsoleApplication1Test\UntestableLibrary.v4.0.30319.v1.0.0.0.MSIL.Prig\UntestableLibrary.Prig.g.csproj]

I seem that UntestableLibrary.Prig.g.csproj doesn't have the assembly references other than Urasandesu.NAnonym, Urasandesu.Prig.Framework and stubbing assembly. The csproj file is here:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <OutputType>Library</OutputType>
    <RootNamespace>UntestableLibrary.Prig</RootNamespace>
    <FileAlignment>512</FileAlignment>
    <SignAssembly>False</SignAssembly>
    <AssemblyOriginatorKeyFile>
    </AssemblyOriginatorKeyFile>
    <OutputPath>C:\Users\User\Documents\Visual Studio 2013\Projects\ConsoleApplication1\ConsoleApplication1Test\bin\Debug\.</OutputPath>
    <DefineConstants>_M_MSIL;_NET_4</DefineConstants>
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <AssemblyName>UntestableLibrary.v4.0.30319.v1.0.0.0.MSIL.Prig</AssemblyName>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Urasandesu.NAnonym">
      <HintPath>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Urasandesu.NAnonym\v4.0_0.2.0.0__ce9e95b04334d5fb\Urasandesu.NAnonym.dll</HintPath>
    </Reference>
    <Reference Include="Urasandesu.Prig.Framework">
      <HintPath>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Urasandesu.Prig.Framework\v4.0_0.1.0.0__acabb3ef0ebf69ce\Urasandesu.Prig.Framework.dll</HintPath>
    </Reference>
    <Reference Include="UntestableLibrary">
      <HintPath>C:\Users\User\Documents\Visual Studio 2013\Projects\ConsoleApplication1\Library\UntestableLibrary.dll</HintPath>
    </Reference>
  </ItemGroup>
  <ItemGroup>
    <Compile Include="**/*.cs" />
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

Shouldn't it rather also have references for <stubbing assembly>.GetReferencedAssemblies()?

@urasandesu urasandesu added the bug label Jul 6, 2014
@urasandesu urasandesu changed the title Build was failed when adding Prig assembly for 3rd party's library. Build was failed when adding Prig assembly for 3rd party library. Jul 6, 2014
@urasandesu urasandesu added this to the v0.0.0-alpha3 milestone Jul 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant