Visual Studio 2022
No edit summary
(Adding page to Category:TOC because it contains a TOC.)
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Work in progress.
=== Background of the installer ===
VS 2022 extensions are not backward compatible. Read this [https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ExtensibilityEssentials2022 article with more details.]


Download pattern: <nowiki>https://mdriven.net/PublicDownloads/MDrivenFramework_7.0.0.13603_Nightly_vs2022.vsix</nowiki>
For historic reasons, we have delivered MDriven as an installer exe - and not as is normal in VS - a VSIX.


VS 2022 extensions are not backwards compatible.
Starting from VS2022, we will need to rewrite and target the VSIX instead of exe.


https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ExtensibilityEssentials2022
=== MDriven Framework in VS2022 ===
Download the VSIX-installer file from [https://mdriven.net/downloads downloads on MDriven.net]


For historic reasons we have delivered MDriven as an installer exe - and not as is normal in VS a VSIX.
Just run the file on the local computer to install or update the current installation.


Starting from VS2022 we will need to rewrite and we will target the VSIX instead of exe.
===== Referenced Packages =====
If you reference MDriven packages in your code, use our [[NugetProject|Nuget packages]].


=== Building the project(admin and developers) ===
Some packages in MDriven use SqlServerCe. Please add this NuGet package to resolve this reference: '''System.Data.SqlServerCe_unofficial'''
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.


Later the build engine will update the RevNumber from svn version id.
=== VS2022: Error Generating Code/Changes Not Saving ===
'''Problem:''' If you recently upgraded to VS2022 and 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. MAKE SURE you have checked in pending changes to GIT before deleting the .vs folder.
[[File:2023-02-24 10h22 06.png|none|thumb]]
 
=== 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.
[[Category:Visual Studio]]
[[Category:Visual Studio]]
{{Edited|July|12|2024}}
[[Category:TOC]]

Latest revision as of 14:14, 26 March 2024

Background of the installer

VS 2022 extensions are not backward compatible. Read this article with more details.

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.

MDriven Framework in VS2022

Download the VSIX-installer file from downloads on MDriven.net

Just run the file on the local computer to install or update the current installation.

Referenced Packages

If you reference MDriven packages in your code, use our Nuget packages.

Some packages in MDriven use SqlServerCe. Please add this NuGet package to resolve this reference: System.Data.SqlServerCe_unofficial

VS2022: Error Generating Code/Changes Not Saving

Problem: If you recently upgraded to VS2022 and 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. MAKE SURE you have checked in pending changes to GIT before deleting the .vs folder.

2023-02-24 10h22 06.png

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.

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