arasplm / ArasVSMethodPlugin

Repository for Aras Innovator Visual Studio Method Plugin
MIT License
22 stars 17 forks source link

Plugin requires methods to reside in "Import\Methods" folder #74

Closed MarvinNorway closed 4 years ago

MarvinNorway commented 4 years ago

Installed product versions

Description

The Visual Studio template creates a structure with a "ServerMethods" folder. For years, we have placed our methods into this folder, like this:

ServerMethods +---Method1 +-----Method1.cs +-----Method1Tests.cs +-----Method1Wrapper.cs

The methods are part of a package, like "com.company.product", but this has never had any influence on the path. I have noticed that when I open methods from Innovator, they are now stored in "ServerMethods\com\company\product\Import\Method\\.cs", while existing methods like "ServerMethod\Method1\Method1.cs" cannot be saved to Innovator anymore, the option is gone.

However, when I move my folder "Method1" from "ServerMethod" to "ServerMethod\Import\Method\Method1" (new folder), then the option "Save to Innovator" becomes available again.

When was this breaking change introduced? This is not great. Do we have to move the files in our solution?

MarvinNorway commented 4 years ago

Fantastic. I have now moved my method to ServerMethods\Import\Method\Method1, so the "Save to Innovator" option becomes available. And when I try to save it, this is the result:

image

Really frustrating. Another good reason to move away from Aras Innovator as quickly as possible and never look back. I don't want to think about how much money this terrible piece of software has cost my client already.

VirtualWebSoftware commented 4 years ago

My experience seems to indicate the new extension is not compatible with projects created with a previous version. When I installed the old version, the errors disappeared.

MarvinNorway commented 4 years ago

Which "old version" did you use? The old version I used was not compatible with VS 2019. That's why I uninstalled it, together with VS2017, when I installed VS 2019. Until now, I didn't have a need to install the plugin again. Seems like nobody bothers to test the extension before releasing new versions.

MarvinNorway commented 4 years ago

Is there an old version available for download somewhere? Really frustrating that no one (@mkubrak ?) updates this issue...

mkubrak commented 4 years ago

@MarvinNorway , sorry for this issue. VS Method plugin change project structure which common for Customer Repository Template but we did not add support for the previous structure. We will create a new build to fix issues #71. We are working on functionality to upgrade structure of projects to new approach. Please expect it in the near future.

mkubrak commented 4 years ago

@MarvinNorway you can download the previous version from https://ci.appveyor.com/project/mkubrak/arasvsmethodplugin/builds/25193859/artifacts.

MarvinNorway commented 4 years ago

Thank you!

VladymyrAfanasiev commented 4 years ago

@MarvinNorway we added new node UseCommonProjectStructure to any project config file that indicates project structure:

If this node does not exist in project config file, VS Method plugin will set False and as result the plugin will work with templates created earlye.

This feature was checked, please try next build and confirm the issue is fixed : https://ci.appveyor.com/project/mkubrak/arasvsmethodplugin/builds/28153655/artifacts