当使用“添加为链接"添加现有项时,VS2015中不会编译此文件吗? [英] When adding an existing item with "Add as Link", this file is not compiled in VS2015?
问题描述
使用添加为链接"添加现有项时,VS2015中不会编译此文件吗?
When adding an existing item with "Add as Link", this file is not compiled in VS2015 ?
推荐答案
实际上,尚不支持此功能.我联系了此功能的工程负责人,他们正在研究支持此功能的情况.
Indeed, this is not yet supported. I contacted the engineering owners of this feature and they are investigating what it would take to support this.
您可以在 project.json
文件中手动添加链接"文件:
You can manually add a "linked" file in the project.json
file:
{
... other stuff ...
"compile": [
"../path/to/somewhere.cs",
"../../another/path/to/file.cs",
"../../use/globbing/**/*.cs"
],
... other stuff ...
}
可在以下位置找到文件的架构: https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/project.json#L98-L119
The schema for the file is available here: https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/project.json#L98-L119
在Visual Studio中,编辑 project.json
文件时,您会在Intellisense中看到相同的架构.
And in Visual Studio while editing a project.json
file you'll see this same schema in Intellisense.
这篇关于当使用“添加为链接"添加现有项时,VS2015中不会编译此文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!