Pau*_*sik 12 c# resharper visual-studio
我绝对崇拜ReSharper,没有它就无法工作,但是我遇到了一些问题并且学会了避免:
那些是我的大人物.还有什么可以咬我和ReSharper同伴的爱好者?
Chr*_*ris 22
当我运行使用#ifs进行条件编译的预处理程序指令,并且设置当前配置以便隐藏代码块时,它似乎看不到#if'd代码并且会建议输出变量该代码块使用,认为它永远不会被调用.
der*_*gel 14
您可以通过UsedImplicitly属性标记此类属性,ReSharper不会建议删除它.
We have used file-wide conditional compilation in the past, and Resharper goes completely nuts about those. It has no idea the conditions even exist, and loads of conflicts and errors can appear if both files declare the same constants and methods.
<ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' Or '$(Configuration)|$(Platform)' == 'Release|x64'">
<Compile Include="SomeFileFor.x64.cs">
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<ItemGroup Condition=" !('$(Configuration)|$(Platform)' == 'Debug|x64' Or '$(Configuration)|$(Platform)' == 'Release|x64')">
<Compile Include="SomeFileFor.x32.cs">
<SubType>Code</SubType>
</Compile>
</ItemGroup>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7470 次 |
| 最近记录: |