ReSharper 9 Test SDK

Unfortunately I cannot find the Testing SDK for R# 9.0 For example I miss the BaseTestWithExistingSolution class, which was part of the JetBrains.Platform.ReSharper.TestFramework assembly in 8.2 in the

JetBrains.ReSharper.SDK.Tests
package.

The new JetBrains.ReSharper.SDK package does contain a dependency on
JetBrains.Platform.Tests.Framework
, which
is unlisted at the moment ("The owner has unlisted this package"). Rly?
7 comments
Comment actions Permalink

Testing has changed with this release of the SDK, reflecting the changes made when re-architecting the product line to support a single, shared binary distribution. One change is that there is no longer a JetBrains.ReSharper.SDK.Tests package - tests are included as a part of the main SDK. The decision to make it unlisted on nuget.org is based on the fact that the package is an implementation detail of the SDK, rather than something that can be installed useful by itself. Being unlisted means it doesn't show up in search results, but can be installed as a dependency, e.g. when you install the SDK.

Unfortunately, the full changes to testing with the SDK aren't yet documented - quite a lot has changed here. It's my top priority for next week. You can follow the GitHub account to see commits and issues. I'll post to the resharper-plugins Google Group when pushing new docs (https://www.jetbrains.com/resharper/devguide).

0
Comment actions Permalink

Hi Mattt,

I don't know why, but in my first try the JetBrains.ReSharper.TestFramework assembly wasn't referenced :|. I tried it a second time and it worked.

Many thanks for your support and for the detailed info about the "test framework" package.


I've one more question about the warnings, coming from the SDK package in a .NET 4 target version project (see below). Can I fix these warnings? If not, are they safe to ignore / will they be fixed in a later version of the SDK?


Warning Could not resolve this reference. Could  not locate the assembly "CsLex". Check to make sure the assembly  exists on disk. If this reference is required by your code, you may get  compilation errors.
Warning Could not resolve this reference. Could not locate the assembly  "ErrorsGen". Check to make sure the assembly exists on disk. If  this reference is required by your code, you may get compilation errors.
Warning Could not resolve this reference. Could not locate the assembly   "JetBrains.Psi.Features.Tasks.Build". Check to make sure the   assembly exists on disk. If this reference is required by your code, you may   get compilation errors.
Warning Could not resolve this reference. Could not locate the assembly  "JsLibGen". Check to make sure the assembly exists on disk. If this  reference is required by your code, you may get compilation errors.
Warning Could not resolve this reference. Could not locate the assembly  "LibGeneratorUtil". Check to make sure the assembly exists on disk.  If this reference is required by your code, you may get compilation errors.
Warning Could not resolve this reference. Could not locate the assembly  "PsiGen". Check to make sure the assembly exists on disk. If this  reference is required by your code, you may get compilation errors.
Warning Could not resolve this reference. Could not locate the assembly  "PsiGen.Targets". Check to make sure the assembly exists on disk.  If this reference is required by your code, you may get compilation errors.
Warning Could not resolve this reference. Could not locate the assembly  "TokenGenerator". Check to make sure the assembly exists on disk.  If this reference is required by your code, you may get compilation errors.
Warning Could not resolve this reference. Could not locate the assembly  "TsLibGen". Check to make sure the assembly exists on disk. If this  reference is required by your code, you may get compilation errors.
Warning There was a mismatch between the processor architecture of the project  being built "MSIL" and the processor architecture of the reference  "JetBrains.ReSharper.TaskRunner.CLR4", "x86". This  mismatch may cause runtime failures. Please consider changing the targeted  processor architecture of your project through the Configuration Manager so  as to align the processor architectures between your project and references,  or take a dependency on references with a processor architecture that matches  the targeted processor architecture of your project.
Warning There was a mismatch between the processor architecture of the project  being built "MSIL" and the processor architecture of the reference  "JetBrains.ReSharper.TaskRunner.CLR4.x64", "AMD64". This  mismatch may cause runtime failures. Please consider changing the targeted  processor architecture of your project through the Configuration Manager so  as to align the processor architectures between your project and references,  or take a dependency on references with a processor architecture that matches  the targeted processor architecture of your project.
Warning There was a mismatch between the processor architecture of the project  being built "MSIL" and the processor architecture of the reference  "JetBrains.ReSharper.TaskRunner", "x86". This mismatch  may cause runtime failures. Please consider changing the targeted processor  architecture of your project through the Configuration Manager so as to align  the processor architectures between your project and references, or take a  dependency on references with a processor architecture that matches the  targeted processor architecture of your project.
Warning There was a mismatch between the processor architecture of the project  being built "MSIL" and the processor architecture of the reference  "JetBrains.ReSharper.TaskRunner.x64", "AMD64". This  mismatch may cause runtime failures. Please consider changing the targeted  processor architecture of your project through the Configuration Manager so  as to align the processor architectures between your project and references,  or take a dependency on references with a processor architecture that matches  the targeted processor architecture of your project.
Warning The predefined type 'System.Threading.Tasks.Task' is defined in multiple  assemblies in the global alias; using definition from 'c:\Program Files  (x86)\Reference  Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll'
Warning The predefined type 'System.Threading.Tasks.Task' is defined in multiple  assemblies in the global alias; using definition from 'c:\Program Files  (x86)\Reference  Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll'
Warning The referenced component 'CsLex' could not be found.
Warning The referenced component 'ErrorsGen' could not be found.
Warning The referenced component 'JetBrains.Psi.Features.Tasks.Build' could not   be found.
Warning The referenced component 'JsLibGen' could not be found.
Warning The referenced component 'LibGeneratorUtil' could not be found.
Warning The referenced component 'PsiGen' could not be found.
Warning The referenced component 'PsiGen.Targets' could not be found.
Warning The referenced component 'TokenGenerator' could not be found.
Warning The referenced component 'TsLibGen' could not be found.
Warning The referenced component 'JetBrains.ReSharper.TaskRunner.CLR45' could not  be found.
Warning The referenced component 'JetBrains.ReSharper.TaskRunner.CLR45.x64' could  not be found.


KR, Ulrich

0
Comment actions Permalink

Hello,

| Warning | Could not resolve this reference. Could  not locate the
assembly "CsLex". Check to make sure the assembly  exists on disk. If
this reference is required by your code, you may get  compilation
errors. |


Looks like a problem with DLL references. Will be an issue if you write PSI
extensions in your plugin.

| Warning | There was a mismatch between the processor architecture of
the project  being built "MSIL" and the processor architecture of the


Ignorable.

| Warning | The predefined type 'System.Threading.Tasks.Task' is
defined in multiple  assemblies in the global alias; using definition


An issue due to mixed v3.5 / v4.0 support. Will have this warning for some
time until we drop support of v3.5.

| Warning | The referenced component
'JetBrains.ReSharper.TaskRunner.CLR45' could not  be found. |


Probably the target framework filter didn't work. But won't do any trouble.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Hi Serge,

Many thanks for your answers!

| Warning | Could not resolve this reference. Could  not locate the assembly "CsLex". Check to make sure the assembly  exists on disk. If
this reference is required by your code, you may get  compilation errors. |


Looks like a problem with DLL references. Will be an issue if you write PSI extensions in your plugin.


I get this warning also in a newly created, empty project. So this comes from the R# 9 SDK package.

KR, Ulrich

0
Comment actions Permalink

I get this same error when trying out sample projects.

I am planning on writing a custom language so I actually will need cslex and psigen.

Is this a fixable issue?

it looks like it cant find the entire JetBrains.Psi.Features.Tasks.6.0.20141204.190183 package.

0
Comment actions Permalink

so it looks like there is a path problem with the nuspec for JetBrains.Psi.Features.Tasks.6.0.20141204.190183

all of it's utilities are located in DotFiles\PsiTasks\* but the Targets file is referencing them from DotFiles\*

I moved everything into the parent folder and the project can find all the assemblies again.

0
Comment actions Permalink

These warnings are all fixed in the 9.1 SDK, and can be ignored in 9.0 - you don't need to reference these files as part of a compilation. They're actually either loaded as tasks into msbuild, or called as standalone executables as part of a .targets file. They weren't supposed to be referenced like this.

0

Please sign in to leave a comment.