Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
c03370e4
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,发现更多精彩内容 >>
提交
c03370e4
编写于
3月 01, 2016
作者:
C
CyrusNajmabadi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Pop up a dialog when we're unable to install/uninstall a nuget package.
上级
d0882623
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
45 addition
and
0 deletion
+45
-0
src/VisualStudio/Core/Def/Packaging/PackageInstallerServiceFactory.cs
...udio/Core/Def/Packaging/PackageInstallerServiceFactory.cs
+13
-0
src/VisualStudio/Core/Def/ServicesVSResources.Designer.cs
src/VisualStudio/Core/Def/ServicesVSResources.Designer.cs
+22
-0
src/VisualStudio/Core/Def/ServicesVSResources.resx
src/VisualStudio/Core/Def/ServicesVSResources.resx
+10
-0
未找到文件。
src/VisualStudio/Core/Def/Packaging/PackageInstallerServiceFactory.cs
浏览文件 @
c03370e4
...
...
@@ -12,6 +12,7 @@
using
Microsoft.CodeAnalysis
;
using
Microsoft.CodeAnalysis.Editor.Shared.Utilities
;
using
Microsoft.CodeAnalysis.Host.Mef
;
using
Microsoft.CodeAnalysis.Notification
;
using
Microsoft.CodeAnalysis.Packaging
;
using
Microsoft.CodeAnalysis.Shared.Utilities
;
using
Microsoft.CodeAnalysis.Text
;
...
...
@@ -195,6 +196,12 @@ private void OnSourceProviderSourcesChanged(object sender, EventArgs e)
catch
(
Exception
e
)
{
dte
.
StatusBar
.
Text
=
string
.
Format
(
ServicesVSResources
.
Package_install_failed_0
,
e
.
Message
);
var
notificationService
=
_workspace
.
Services
.
GetService
<
INotificationService
>();
notificationService
?.
SendNotification
(
string
.
Format
(
ServicesVSResources
.
Installing_0_failed_Additional_information_1
,
packageName
,
e
.
Message
),
severity
:
NotificationSeverity
.
Error
);
// fall through.
}
...
...
@@ -230,6 +237,12 @@ private static string GetStatusBarText(string packageName, string installedVersi
catch
(
Exception
e
)
{
dte
.
StatusBar
.
Text
=
string
.
Format
(
ServicesVSResources
.
Package_uninstall_failed_0
,
e
.
Message
);
var
notificationService
=
_workspace
.
Services
.
GetService
<
INotificationService
>();
notificationService
?.
SendNotification
(
string
.
Format
(
ServicesVSResources
.
Uninstalling_0_failed_Additional_information_1
,
packageName
,
e
.
Message
),
severity
:
NotificationSeverity
.
Error
);
// fall through.
}
...
...
src/VisualStudio/Core/Def/ServicesVSResources.Designer.cs
浏览文件 @
c03370e4
...
...
@@ -555,6 +555,17 @@ internal class ServicesVSResources {
}
}
/// <summary>
/// Looks up a localized string similar to Installing '{0}' failed.
///
///Additional information: {1}.
/// </summary>
internal
static
string
Installing_0_failed_Additional_information_1
{
get
{
return
ResourceManager
.
GetString
(
"Installing_0_failed_Additional_information_1"
,
resourceCulture
);
}
}
/// <summary>
/// Looks up a localized string similar to Interface name conflicts with an existing type name..
/// </summary>
...
...
@@ -1200,6 +1211,17 @@ internal class ServicesVSResources {
}
}
/// <summary>
/// Looks up a localized string similar to Uninstalling '{0}' failed.
///
///Additional information: {1}.
/// </summary>
internal
static
string
Uninstalling_0_failed_Additional_information_1
{
get
{
return
ResourceManager
.
GetString
(
"Uninstalling_0_failed_Additional_information_1"
,
resourceCulture
);
}
}
/// <summary>
/// Looks up a localized string similar to <Unknown>.
/// </summary>
...
...
src/VisualStudio/Core/Def/ServicesVSResources.resx
浏览文件 @
c03370e4
...
...
@@ -537,4 +537,14 @@ Use the dropdown to view and switch to other projects this file may belong to.</
<data
name=
"Package_uninstall_failed_0"
xml:space=
"preserve"
>
<value>
Package uninstall failed: {0}
</value>
</data>
<data
name=
"Installing_0_failed_Additional_information_1"
xml:space=
"preserve"
>
<value>
Installing '{0}' failed.
Additional information: {1}
</value>
</data>
<data
name=
"Uninstalling_0_failed_Additional_information_1"
xml:space=
"preserve"
>
<value>
Uninstalling '{0}' failed.
Additional information: {1}
</value>
</data>
</root>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录