【问题标题】:Rider "extern alias" and "using" supportRider“外部别名”和“使用”支持
【发布时间】:2019-05-08 14:28:09
【问题描述】:

我有某种References DLL,其中包含引用等,例如 Newtonsoft.Json。我将它添加到项目中,使用 extern alias References 和 using References::Newtonsoft.Json,但 Rider 不喜欢它:

附: 它在 Visual Studio 中工作得非常好。

【问题讨论】:

  • 您能否查看我的答案,看看它是否适合您?

标签: c# .net jetbrains-ide rider


【解决方案1】:

更新:自 2019.3 版起已修复此问题

如果您使用的是旧版本,解决方法是在根项目文件夹中创建一个名为 {solutionName}.sln.DotSettings 的文件,其中包含以下数据:

<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/Environment/Hierarchy/Build/BuildTool/MsBuildSolutionLoadingTargets/@EntryValue">ChangeAliasesOfStrongNameAssemblies</s:String></wpf:ResourceDictionary>

在这里找到:https://youtrack.jetbrains.com/issue/RSRP-476048

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-05-13
    • 2011-08-25
    • 2014-01-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多