Upgrade to R# SDK 2019.2 problems

18 views
Skip to first unread message

Dmitry Dolotovskikh

unread,
Aug 9, 2019, 11:19:26 AM8/9/19
to resharper-plugins
Hi

I tried to update my plugin to latest SDK 2019.2 and met follow problems:

1. IManagedProjectBuildSettings.OutputType property has gone. I have follow code:

if (managedProjectBuildSettings.OutputType == ProjectOutputType.LIBRARY || managedProjectBuildSettings.OutputType == ProjectOutputType.CONSOLE_EXE ||
                                                     managedProjectBuildSettings.OutputType == ProjectOutputType.WIN_EXE) {...}

How can I fix it? May be I can use  IManagedProjectBuildSettings.ApplicationType, but it is string type...

2. I have code which recognise inheritance from specific class:

2019-08-09 18_10_32-ReSharePoint - Microsoft Visual Studio.png


The problem is when I fix IDeclaredTypeUsage -> ITypeUsage, I don't know what I should change in the CSharpTypeFactory.CreateDeclaredType(parentClassDeclarationUsage) method call:

2.png

3. What is replacement for IUserDeclaredTypeUsage interface?

3.png


Thanks

Dmitrii, reSP plugin
Reply all
Reply to author
Forward
0 new messages