After installing latest elements (.2735), i can’t compile or debug my projects with Visual Studio 17.2.
The ContextMenuItems “Build” and “Rebuild” are not there in .2735
Invoking “Build” via MainMenu or Keyboard-Shortcut starts “something” (Build started…), but nothing really happens and there seem to be no end and you have to kill VS via Task-Manager.
Also creating new (Elements-)projects from template fails with a “file not found error” - but i can’t say what is missing.
Snippet from ActivityLog.xml:
<entry>
<record>1254</record>
<time>2022/05/17 06:19:03.809</time>
<type>Error</type>
<source>Template provider aggregator</source>
<description>System.IO.FileNotFoundException: Das System kann die angegebene Datei nicht finden. (Exception from HRESULT: 0x80070002)
 at Microsoft.VisualStudio.CommonIDE.Solutions.Interop.IVsNativeEnvironmentInternal.WizLoadAndRunFile(String pwszWizard, String pwszDestination, Boolean bCloseSolution, Boolean bRunSilent, Array psaCustomParams, String pwszFrameworkVersion)
 at Microsoft.VisualStudio.CommonIDE.Solutions.Dte.DteSolution.<>c__DisplayClass256_0.<AddFromTemplateEx>b__0()
 at Microsoft.VisualStudio.CommonIDE.Solutions.HResultExtensions.ExToHr(Action action)
 at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
 at Microsoft.VisualStudio.CommonIDE.Solutions.Dte.DteSolution.<>c__DisplayClass25_0.<EnvDTE100.Solution4.AddFromTemplateEx>b__0()
 at Microsoft.VisualStudio.NewProjectDialog.LegacyVsTemplateProvider.GetInstantiationResult(CreateProjectResult result)
 at Microsoft.VisualStudio.NewProjectDialog.LegacyProjectTemplateProvider.<InstantiateTemplateAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.TemplateProviders.TemplateProviderSupport.ExceptionLoggingTemplateProviderDecorator.<InstantiateTemplateAsync>d__9.MoveNext()</description>
</entry>
Maybe this is a hint:
<entry>
<record>523</record>
<time>2022/05/17 06:18:42.592</time>
<type>Error</type>
<source>Microsoft.VisualStudio.ComponentModelHost.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Die Datei oder Assembly "Microsoft.VisualStudio.ReferenceManager.Contracts, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.</description>
<path>C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\EXTENSIONS\REMOBJECTS SOFTWARE\REMOBJECTS ELEMENTS EDITOR\1.0\RemObjects.Elements.VisualStudio.Editor.17.dll</path>
</entry>
i downgraded Elements to version .2731 on VS 17.2. after that and everything seem to work “as expected” then.
As i don’t have ASP.NET projects i can’t say anything about that.
can you remove: C:\Users\username\AppData\Local\Microsoft\VisualStudio\17.0_… ? and start vs again? That often helps cleaning up a broken VS (the build works fine for viktoria and myself).
Hello,
I think we have found what the problem was and fixed it. We uploaded a new build with the fix on your personal downloads. Could you please try it and let us know if it fixes your issue.
Best regards.
Does the problem appears for some newly created project, e.g. for newly created Oxygene Console app? Or a particular one?
Can I teamview on your machine tomorrow at any time that suits you? I cannot reproduce the issue here but it looks like the Editor extension was cached somehow and uses an old dll.
I can’t create new projects (any Elements-language and project-type, as far as i know), if i try i get a file not found error from VS.
Some files are created despite it, but some things don’t seem to be valid (sln-File?) ConsoleApplication1.zip (32.5 KB)
And the cache is cleared, every time i install .2731 and dirty for every other tested version?
TeamViewer: Just send me a message tommorow and i will send you my id.
The changelog says that the error(s) should have been fixed with version .2741 - unfortunately I have to say that I still have the same problems after I installed the new version.
This exception is thrown if i attach VS to VS like you did recently.
Exception thrown: 'System.IO.FileNotFoundException' in RemObjects.Elements.VisualStudio.Project.17.dll
Could not load file or assembly 'Microsoft.VisualStudio.Web.Application, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Das System kann die angegebene Datei nicht finden.
The same exception is thrown when I start “debugging” or want to create a new project.