Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Drag and Drop on Designer gives error #112

Closed
dcastenholz opened this issue Oct 21, 2019 · 11 comments
Closed

Drag and Drop on Designer gives error #112

dcastenholz opened this issue Oct 21, 2019 · 11 comments
Labels
bug Confirmed bug released Issue is resolved in a current release
Milestone

Comments

@dcastenholz
Copy link
Contributor

Dragging a simple file from Explorer to designer surface throws error.

File contents:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
	public class Example
	{
		public int Bar { get; set; }
	}
}

Error:
Method not found: 'Microsoft.CodeAnalysis.SyntaxTree...
See attached .jpg.
EFDesignerDragDropError

@msawczyn msawczyn added investigating Looking into this duplicate Duplicate issue pending release Issue is resolved in the current codebase, will be published with the next release and removed investigating Looking into this labels Oct 26, 2019
@msawczyn msawczyn added this to the 1.3.0.8 milestone Oct 26, 2019
@msawczyn msawczyn removed the duplicate Duplicate issue label Oct 26, 2019
@msawczyn
Copy link
Owner

Fix available for review in v1.3.0.8-pre

@dcastenholz
Copy link
Contributor Author

No joy. Verified 1.3.0.8 installed. Same error dropping it on an empty designer.

@msawczyn
Copy link
Owner

Oh, this is most odd. I'll take another look. There's a dependency you don't have.

@dcastenholz
Copy link
Contributor Author

thx

@msawczyn
Copy link
Owner

msawczyn commented Oct 29, 2019

Is it possible that you don't have Roslyn in your Visual Studio installation? What version (number) of Visual Studio are you're using?

@msawczyn
Copy link
Owner

Interesting stuff. The Nuget packages that the project use have deviated enough from what Visual Studio uses that they've become an issue. Couple that with the fact that the new "package reference" format (as opposed to using a packages.config) doesn't necessarily copy the files into the VSIX. Luckily there's a way to work around this, and I've given it a shot with 1.3.0.8-pre3.

If you can take a look to see if it resolves this problem, I'd be in your debt.

@msawczyn msawczyn added bug Confirmed bug released Issue is resolved in a current release and removed pending release Issue is resolved in the current codebase, will be published with the next release labels Nov 9, 2019
@dcastenholz
Copy link
Contributor Author

Sorry for the slow response. VS 2017 (15.9.17). Installed 1.3.0.10 and I have a new error.
EFDesigner DragDrop2

@msawczyn
Copy link
Owner

There's something odd with your environment. While the extension does have a dependency on System.Memory, it's indirect. And that particular version isn't called for anywhere -- it's too low. Can you try uninstalling and reinstalling, rather than upgrading? May not do anything, but worth a shot. I have it installed in VS2017 as well -- in fact, it's compiled using VS2017 -- and haven't seen the kinds of issues you've been experiencing.

Thanks for the report. Looking forward to hearing the results.

@dcastenholz
Copy link
Contributor Author

dcastenholz commented Nov 18, 2019 via email

@msawczyn
Copy link
Owner

Can you tell me exactly what you were doing when the error popped up?

@dcastenholz
Copy link
Contributor Author

Dragged the previously attached .cs file from the solution explorer onto the model surface and dropped it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Confirmed bug released Issue is resolved in a current release
Projects
None yet
Development

No branches or pull requests

2 participants