Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
d0680029
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
d0680029
编写于
4月 03, 2020
作者:
J
Julien Couvreur
提交者:
GitHub
4月 03, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add notes for deploying roslyn from command-line (#42983)
上级
d6017624
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
23 addition
and
0 deletion
+23
-0
docs/contributing/Building, Debugging, and Testing on Windows.md
...ntributing/Building, Debugging, and Testing on Windows.md
+23
-0
未找到文件。
docs/contributing/Building, Debugging, and Testing on Windows.md
浏览文件 @
d0680029
...
...
@@ -63,6 +63,8 @@ give it a try.
## Trying Your Changes in Visual Studio
### Deploying with F5
The Rosyln solution is designed to support easy debugging via F5. Several of our
projects produce VSIX which deploy into Visual Studio during build. The F5 operation
will start a new Visual Studio instance using those VSIX which override our installed
...
...
@@ -111,6 +113,8 @@ default, a separate instance than the standard "Experimental Instance" used by
other Visual Studio SDK projects. If you're familiar with the idea of Visual
Studio hives, we deploy into the RoslynDev root suffix.
### Deploying with VSIX
If you want to try your extension in your day-to-day use of Visual Studio, you
can find the extensions you built in your Binaries folder with the .vsix
extension. You can double-click the extension to install it into your main
...
...
@@ -120,12 +124,31 @@ Updates to indicate you're running your experimental version. You can uninstall
your version and go back to the originally installed version by choosing your
version and clicking Uninstall.
### Deploying with command-line
You can build and deploy with the following command:
`.\Build.cmd -Configuration Release -deployExtensions -launch`
.
Then you can launch the
`RoslynDev`
hive with
`devenv /rootSuffix RoslynDev`
.
### Referencing bootstrap compiler
If you made changes to a Roslyn compiler and want to build any projects with it, you can either
use the Visual Studio hive where your
**CompilerExtension**
is installed, or from
command line, run msbuild with
`/p:BootstrapBuildPath=YourBootstrapBuildPath`
.
`YourBootstrapBuildPath`
could be any directory on your machine so long as it had
csc and vbc inside it. You can check the cibuild.cmd and see how it is used.
### Troubleshooting your setup
To confirm what version of the compiler is being used, include
`#error version`
in your program
and the compiler will produce a diagnostic including its own version as well as the language
version it is operating under.
You can also attach a debugger to Visual Studio and check the loaded modules, looking at the folder
where the various
`CodeAnalysis`
modules were loaded from (the
`RoslynDev`
should load them somewhere
under
`AppData`
, not from
`Program File`
).
## Contributing
Please see
[
Contributing Code
](
https://github.com/dotnet/roslyn/blob/master/CONTRIBUTING.md
)
for details on contributing changes back to the code.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录