Visual Studio 2022
No edit summary
No edit summary
Line 1: Line 1:
Fully supported and suggested version of VS.
=== A Fully Supported and Suggested Version of VS ===
 
Download pattern: https://mdriven.net/PublicDownloads/MDrivenFramework_7.0.0.13603_Nightly_vs2022.vsix  
Download pattern: <nowiki>https://mdriven.net/PublicDownloads/MDrivenFramework_7.0.0.13603_Nightly_vs2022.vsix</nowiki>


VS 2022 extensions are not backwards compatible.
VS 2022 extensions are not backwards compatible.
Line 7: Line 6:
https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ExtensibilityEssentials2022
https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ExtensibilityEssentials2022


For historic reasons we have delivered MDriven as an installer exe - and not as is normal in VS a VSIX.
For historic reasons, we have delivered MDriven as an installer exe - and not as is normal in VS a VSIX.


Starting from VS2022 we will need to rewrite and we will target the VSIX instead of exe.
Starting from VS2022, we will need to rewrite and target the VSIX instead of exe.


=== Building the project(admin and developers) ===
=== Building the Project (Admin and Developers) ===
Add a environment variable RevNumber , set this to a number like 123. This variable is used by the buildscript 2022BUILDMDrivenVSIX.cmd that will inject the number into a file source.extension.vsixmanifest based on the template source.extension.vsixmanifest.template.
Add an environment variable RevNumber and set this to a number like 123. This variable is used by the buildscript 2022BUILDMDrivenVSIX.cmd that will inject the number into a file source.extension.vsixmanifest based on the template source.extension.vsixmanifest.template.


Later the build engine will update the RevNumber from svn version id.
Later, the build engine will update the RevNumber from the svn version id.


=== VS2022: Error Generating Code/Changes not saving ===
=== VS2022: Error Generating Code/Changes Not Saving ===
'''Problem:''' If you recently upgraded to VS2022 and you have trouble saving your changes or got this error, while trying to code generate:
'''Problem:''' If you recently upgraded to VS2022 and you have trouble saving your changes or got this error while trying to code generate, try this:
  Model file "C:\_path_to_your_project\YourProject.ecomdl" belongs to the "Misc Files" project.  
  Model file "C:\_path_to_your_project\YourProject.ecomdl" belongs to the "Misc Files" project.  
  Please add it to a real project, then close and reopen the editor tab
  Please add it to a real project, then close and reopen the editor tab
'''Solution:''' In the project's root folder, delete the hidden '''.vs''' folder that might contain the older backups of previous versions of VS.
'''Solution:''' In the project's root folder, delete the hidden '''.vs''' folder that might contain the older backups of previous versions of VS.
[[Category:Visual Studio]]
[[Category:Visual Studio]]

Revision as of 06:05, 24 February 2023

A Fully Supported and Suggested Version of VS

Download pattern: https://mdriven.net/PublicDownloads/MDrivenFramework_7.0.0.13603_Nightly_vs2022.vsix

VS 2022 extensions are not backwards compatible.

https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ExtensibilityEssentials2022

For historic reasons, we have delivered MDriven as an installer exe - and not as is normal in VS a VSIX.

Starting from VS2022, we will need to rewrite and target the VSIX instead of exe.

Building the Project (Admin and Developers)

Add an environment variable RevNumber and set this to a number like 123. This variable is used by the buildscript 2022BUILDMDrivenVSIX.cmd that will inject the number into a file source.extension.vsixmanifest based on the template source.extension.vsixmanifest.template.

Later, the build engine will update the RevNumber from the svn version id.

VS2022: Error Generating Code/Changes Not Saving

Problem: If you recently upgraded to VS2022 and you have trouble saving your changes or got this error while trying to code generate, try this:

Model file "C:\_path_to_your_project\YourProject.ecomdl" belongs to the "Misc Files" project. 
Please add it to a real project, then close and reopen the editor tab

Solution: In the project's root folder, delete the hidden .vs folder that might contain the older backups of previous versions of VS.

This page was edited 46 days ago on 03/26/2024. What links here