命名空间'AuntieDot'中不存在类型或命名空间名称'Core'

Ale*_*eed 6 c# portable-class-library

我有4个PCL,它们都针对相同的框架:

AuntieDot:

AuntieDot

AuntieDot.Authentication:

AuntieDot.Authentication

AuntieDot.Core:

AuntieDot.Core

AuntieDot.Models:

AuntieDot.Models

但出于某种原因,在'AuntieDot.Authentication'命名空间中使用'AuntieDot.Core.Helpers'(尽管'AuntieDot.Core'被添加为'AuntieDot.Authentication'的引用,但它说它不存在.我已经google了,我得到的唯一回复是我需要确保其他库是针对相同的框架,它们是.

我正在使用的唯一外部代码是JSON.net,我通过NuGet添加,所以我不认为这是问题.

'AuntieDot.Core'中的代码; 助手 例外

抛出问题的代码只是在错误列表和编译中抱怨,它没有像往常一样的红色下划线:

错误:(

我只是觉得发布Build Output可能有所帮助; http://pastebin.com/raw.php?i=wn74UKyc

Ale*_*eed 4

发现了这个问题,在针对我所针对的框架时,VS 似乎存在一个错误。我通过谷歌搜索构建输出中的错误发现了这一点,这让我找到了在 Microsoft Connect SiteThe currently targeted framework ".NETPortable,Version=v4.5,Profile=Profile78" does not include "System.Net.Requests, Version=4.0.0.0, Culture=neutral上遇到相同问题的人。似乎他们很快就会修复这个错误,但直到那时微软才发布了这个解决方法,感谢 VS 团队的 Dave,

再次感谢您的错误报告。我们找到了另一种解决方法,不需要您更改目标框架。要解决此问题,请在文本编辑器中编辑项目,并在最后一个“导入”元素下方添加以下内容:

<Target Name="_SetFullFrameworkFolderToProfile"
 AfterTargets="GetReferenceAssemblyPaths">

<PropertyGroup>
 <_FullFrameworkReferenceAssemblyPaths>$(TargetFrameworkDirectory)</_FullFrameworkReferenceAssemblyPaths>
</PropertyGroup>
</Target>
Run Code Online (Sandbox Code Playgroud)

Andddd繁荣:

赃物