Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference not found by Resharper plugin when project in solution dir #309

Open
simonlaroche opened this issue Mar 20, 2012 · 3 comments
Open

Comments

@simonlaroche
Copy link

When a project is in a solution directory the resharper plugin does not find the assembly references, when I remove the solution directory, the plugin works fine.

Resharper 6.0
OpenWrap 2.0.2.97071696 (from the beta repo IIRC)

@serialseb
Copy link
Member

Are there any exceptions or traces in the OpenWrap section of the output window?

Seb

On 20 Mar 2012, at 02:30, "Simon Laroche" [email protected] wrote:

When a project is in a solution directory the resharper plugin does not find the assembly references, when I remove the solution directory, the plugin works fine.

Resharper 6.0
OpenWrap 2.0.2.97071696 (from the beta repo IIRC)


Reply to this email directly or view it on GitHub:
#309

@simonlaroche
Copy link
Author

Exception is only in the UICommand Plugin

OpenWrap Visual Studio Integration (2.0.0.1) starting.
Root location: C:\Users\slaroche\Projects\kaju-github\Simple.Testing
Loading packages...
Loading package C:\Users\slaroche\Projects\kaju-github\Simple.Testing\wraps_cache\openwrap-2.0.2.97071696
Loading package C:\Users\slaroche\Projects\kaju-github\Simple.Testing\wraps_cache\SharpZipLib-0.86.0
Loading package C:\Users\slaroche\Projects\kaju-github\Simple.Testing\wraps_cache\tdnet-framework-2.0.0.48555719
Loading package C:\Users\slaroche\Projects\kaju-github\Simple.Testing\wraps_cache\Mono.Cecil-0.9.4.1
Loading package C:\Users\slaroche\Projects\kaju-github\Simple.Testing\wraps_cache\openfilesystem-1.0.1.88267869
Solution plugins starting...
Starting plugin UICommandsPlugin.
Plugin initialization failed.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at OpenWrap.VisualStudio.Hooks.UICommandsPlugin.Initialize() in c:\Users\slaroche\Projects\github\openrasta\openwrap\src\OpenWrap.VisualStudio.SolutionPlugins\Hooks\UICommands\UICommandsPlugin.cs:line 68
at OpenWrap.VisualStudio.Hooks.UICommandsPlugin..ctor(ICommandRepository commands) in c:\Users\slaroche\Projects\github\openrasta\openwrap\src\OpenWrap.VisualStudio.SolutionPlugins\Hooks\UICommands\UICommandsPlugin.cs:line 27
at OpenWrap.VisualStudio.Hooks.UICommandsPlugin..ctor() in c:\Users\slaroche\Projects\github\openrasta\openwrap\src\OpenWrap.VisualStudio.SolutionPlugins\Hooks\UICommands\UICommandsPlugin.cs:line 19
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)
at System.Activator.CreateInstanceFrom(String assemblyFile, String typeName)
at OpenWrap.PackageManagement.Exporters.SolutionPlugin.Start() in c:\Users\slaroche\Projects\github\openrasta\openwrap\src\OpenWrap\PackageManagement\Exporters\SolutionPlugin.cs:line 30
at OpenWrap.Commands.Core.StartSolutionPlugin.<>c__DisplayClass27.b__25() in c:\Users\slaroche\Projects\github\openrasta\openwrap\src\OpenWrap.Commands\Core\StartSolutionPlugin.cs:line 126
at OpenWrap.Commands.Core.StartSolutionPlugin.TryDo(Action action, Action`1 onError) in c:\Users\slaroche\Projects\github\openrasta\openwrap\src\OpenWrap.Commands\Core\StartSolutionPlugin.cs:line 150
Starting plugin AssemblyReferenceNotificationsPlugin.
Starting plugin ReSharperLoaderPlugin.
Resharper Plugin Manager: Loaded (99.99.266.5825).
ReSharper Project Reference Updater: Solution opened Simple
ReSharper Project Reference Updater: Changes detected, updating assembly references (35738073).
All solution plugins started.
ReSharper test runner starting.

@simonlaroche
Copy link
Author

Just to make things clear, the plugin does not work for projects in a solution folder in the solution explorer not the actual solution directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants