我用Angular CLI 1.0.0-beta 16创建了一个带Angular 2.0 RTM的新项目:
ng init
然后跑:
ng generate component my-new-component
然后跑:
ng test
得到了这个:
'app-my-new-component' is not a known element:
1. If 'app-my-new-component' is an Angular component, then verify that it is part of this module.
2. If 'app-my-new-component' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message. ("
</h1>
<p>The mean of life is {{answer}}</p>
[ERROR ->]<app-my-new-component></app-my-new-component>"): AppComponent@4:0
Error: Template parse errors:
at TemplateParser.parse (http://localhost:9877/_karma_webpack_/0.bundle.js:8669:19)
at RuntimeCompiler._compileTemplate (http://localhost:9877/_karma_webpack_/0.bundle.js:17854:51) …Run Code Online (Sandbox Code Playgroud) 我想跑:
nuget pack project.csproj
Run Code Online (Sandbox Code Playgroud)
但由于项目的目录结构:
A\B\C \项目
它一直在说:
NuGet.Protocol.Core.Types.FatalProtocolException:无法从远程源'A\B\Packages'检索信息,它确实应该是'A\Packages'.如何在建立依赖关系时更改NuGet查找包的位置.
我已经尝试在项目目录和解决方案(在.nuget中)中放置NuGet.config.我把它添加到文件中:
<config>
<add key="repositoryPath" value="A\Packages" />
</config>
Run Code Online (Sandbox Code Playgroud)
在这两个地方都没有区别(它总是说A\B\Packages).