`
gstarwd
  • 浏览: 1552191 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

Lexware Assembly Reference Tool for Visual Studio 2005 / 2008

    博客分类:
  • .NET
阅读更多

http://www.codeproject.com/KB/macros/Lexware_AssemblyReference.aspx

 

 

Sample Image - maximum width is 600 pixels

Introduction

Visual Studio 2005 / 2008 both lack a good way to define assembly references per solution configuration (‘Debug’ or ‘Release’).

Background

There are some ways to define assembly references which change if the solution configuration changes, but they are not sufficient for larger projects. The following features of Visual Studio 2005 / 2008 are fine for small projects:

  • Set a Project reference from one project to another. The projects must be all in one solution. This is not always possible in projects where a lot of developers are working on multiple projects lying in different solutions.
  • Set a reference to an assembly lying in the output path of the project. Visual Studio 2005 searches for assembly references first in the output path of the project. A way to define assembly references per solution configuration is to put all assemblies in a common output directory (MSDN Article ). This is inflexible.


The Lexware Assembly Reference Tool fills this gap, by providing a new tool window in Visual Studio 2005 / 2008, which allows you to change ‘hard-coded’ assembly reference paths to flexible reference paths which change depending on the solution configuration. The tool detects ‘Debug’ or ‘Release’ in the assembly reference path and marks the assembly in red to show you the potential problem you have, when you build the project in another configuration. You only need to press a button and all these paths will be converted to paths which depend on the configuration of the project.


ToolWindow


Additionally the tool provides the following features:

  • Change the ‘Copy Local’ property
  • Manipulate the ‘Special Version’ property
  • Edit the assembly reference path (‘HintPath’)
  • Convert a project reference into an assembly references
  • Delete an assembly reference


Context menue


After installing and starting the Add-In you can open the assembly reference tool via the Visual Studio 2005 / 2008 tools menu.


VisualStudioMenue

 

How it works

The general idea behind it

The tool allows flexible assembly reference paths by replacing “\Debug\” or “\Release\” in the reference path against “\$Configuration\”, which is a placeholder for the solution configuration in Visual Studio 2005 / 2008. Visual Basic and CSharp projects are able to replace the placeholder back to “\Debug\” or “\Relase\” when trying to resolve an assembly path.

Since the Visual Studio 2005 / 2008 object model doesn’t allow any change to a reference path, the tool changes the path in the underlying project file. It manipulates the tag , the path to the assembly, which is referenced.


Hnit path

When the tool saves the project file, Visual Studio notices that change and asks you to reload the project.

For some features the tool holds a reference to the internal Visual Studio representation of an assembly reference (VSLangProj80.Reference3), which allows a manipulation of properties like ‘CopyLocal’, ‘SpecificVersion’ or deleting a reference. Changes to these properties are directly reflected by the original property window of the assembly reference in Visual Studio.

The Tool solution itself

The solution contains a CSharp and a setup project. The setup project was created with the Setup Project template. The CSharp project is originally created with a Visual Studio Add-In project template of Visual Studio 2005.


New project

Visual Studio automatically creates a ‘Tool’ menu item for the add-in, if you choose so in the project wizard. If you select ‘I would like my Add-In to load, …’ Visual Studio loads your Add-In directly when it starts.


Projectwizard

In the new project Visual Studio creates two files with the extension ‘AddIn’. One is lying in the project folder (e.g. ‘Lexware.Tools.AssemblyReferences.AddIn’) and this is used when the Add-In is deployed. The other one (e.g. ‘Lexware.Tools.AssemblyReferences - For Testing.AddIn’) is placed in the Visual Studio Add-In folder. This is the one which is used while debugging the Add-In. The Visual Studio Add-In folder is contained in your documents folder. For Windows Vista it should be found here: C:\Users\’Your User Name’\Documents\Visual Studio 2005\Addins. An Add-In file contains a full description of the Add-In. It provides a friendly name, the load behavior and other information, necessary for Visual Studio to display the Add-In in the ‘Add-in Manager’.


Addin Manager Menue


Addin Manager

The Add-In

The Add-In project contains the file ‘connect.cs’, which contains the code connecting to Visual Studio. The class ‘Connect’ is called, when the Add-In starts. In fact it is defined in the ‘FullClassName’ tag of the ‘.Addin’ file described below.


Connect

The class Connect

The class Connect implements the Visual Studio interface IDTExtensibility2 , which defines the Method OnConnection . This method is called, when Visual Studio loads the Add-In into its memory. This is the place where you can add menu items and in this case create a tool window.

Collapse
public
 void
 OnConnection(object
 application, ext_ConnectMode connectMode,
    object
 addInInst, ref
 Array custom)
{
    _applicationObject = (DTE2)application;
    _addInInstance = (AddIn)addInInst;

    CreateToolWindow();

    if
(connectMode == ext_ConnectMode.ext_cm_UISetup)
    {
        object
[] contextGUIDS = new
 object
[] {};
        Commands2 commands = (Commands2)_applicationObject.Commands;
        string
 toolsMenuName;

        try

        {
            //
If you would like to move the command to a different menu, change the

            //
word "Tools" to the English version of the menu. This code will take

            //
 the culture, append on the name of the menu then add the command to

            //
 that menu. You can find a list of all the top-level menus in the file

            //
  CommandBar.resx.

            ResourceManager resourceManager = new
 ResourceManager(
                "
Lexware.Tools.AssemblyReferences.CommandBar"
,
                Assembly.GetExecutingAssembly());
            CultureInfo cultureInfo = new
 CultureInfo(_applicationObject.LocaleID);
            string
 resourceName = String
.Concat(cultureInfo.TwoLetterISOLanguageName,
                LocalResources.ToolbarName);
            toolsMenuName = resourceManager.GetString(resourceName);
        }
        catch

        {
            //
We tried to find a localized version of the word Tools, but one was

            //
 not found.

            //
  Default to the en-US word, which may work for the current culture.

            toolsMenuName = LocalResources.ToolbarName;
        }

        //
Place the command on the tools menu.

        //
Find the MenuBar command bar, which is the top-level command bar holding

        //
all the main menu items:

        Microsoft.VisualStudio.CommandBars.CommandBar menuBarCommandBar = (
            (CommandBars)_applicationObject.CommandBars)["
MenuBar"
];

        //
Find the Tools command bar on the MenuBar command bar:

        CommandBarControl toolsControl = menuBarCommandBar.Controls[toolsMenuName];
        CommandBarPopup toolsPopup = (CommandBarPopup)toolsControl;

        //
This try/catch block can be duplicated if you wish to add multiple commands

        //
 to be handled by your Add-in,

        //
  just make sure you also update the QueryStatus/Exec method to include

        //
  the new command names.

        try

        {
            //
Add a command to the Commands collection:

            Command command = commands.AddNamedCommand2(_addInInstance,
                "
AssemblyReferences"
, "
Assembly Reference Tool"
,
"
Checks and fixes assembly references. Uses placeholder for debug and release directory."
,
                 true
, 0
, ref
 contextGUIDS,
                 (int
)vsCommandStatus.vsCommandStatusSupported +
                 (int
)vsCommandStatus.vsCommandStatusEnabled,
                 (int
)vsCommandStyle.vsCommandStyleText,
                 vsCommandControlType.vsCommandControlTypeButton);

            //
Add a control for the command to the tools menu:

            if
((command != null
) && (toolsPopup != null
))
            {
                command.AddControl(toolsPopup.CommandBar, 1
);
            }
        }
        catch
(ArgumentException)
        {
            //
If we are here, then the exception is probably because a

            //
 command with that name

            //
  already exists. If so there is no need to recreate the command and we can 

            //
  safely ignore the exception.

        }
    }
}

When the user clicks your menu item, the method Exec in the same class will be called. You can filter the commandName , to know whether the called menu item was yours.

Collapse
public
 void
 Exec(string
 commandName, vsCommandExecOption executeOption,
    ref
 object
 varIn, ref
 object
 varOut, ref
 bool
 handled)
{
    handled = false
;
    if
(executeOption == vsCommandExecOption.vsCommandExecOptionDoDefault)
    {
        if
(commandName == "
Lexware.Tools.AssemblyReferences.Connect.AssemblyReferences"
)
        {
            //
 Open Toolwindow

            CreateToolWindow();

            handled = true
;
            return
;
        }
    }
}

The tool window, which contains all the important code in this Add-In, is a UserControl. To create it, you can call CreateToolWindow2 . This method creates a new Visual Studio tool window and hosts a user control in it.

Collapse
private
 void
 CreateToolWindow()
{
    if
(_toolWindow != null
)
    {
        _toolWindow.Activate();
    }
    else

    {
        //
This guid must be unique for each different tool window,

        //
 but you may use the same guid for the same tool window.

        //
This guid can be used for indexing the windows collection,

        //
 for example: applicationObject.Windows.Item(guidstr)

        Windows2 windows2 = (Windows2)_applicationObject.Windows;
        Assembly asm = Assembly.GetExecutingAssembly();

        object
 customControl = null
;
        string
 className = "
Lexware.Tools.AssemblyReferences.ToolWindowControl"
;
        string
 caption = "
Assembly References"
;
        _toolWindow = windows2.CreateToolWindow2(_addInInstance, asm.Location, className, 
                                                 caption, _toolWindowGuid,
                                                 ref
 customControl);

        //
Set the picture displayed when the window is tab docked (this causes

        //
problems in Visual Studio 2008)

        try

        {
            _toolWindow.SetTabPicture(LocalResources.LexwareBmp.GetHbitmap());
        }
        catch

        {
        }

        //
When using the hosting control, you must set visible to true before calling

        //
 HostUserControl, otherwise the UserControl cannot be hosted properly.

        _toolWindow.Visible = true
;

        if
 (customControl != null
)
        {
            _toolWindowControl = (ToolWindowControl)customControl;
            _toolWindowControl.ApplicationObject = _applicationObject;
            _toolWindowControl.ParentToolWindow = _toolWindow;
        }
    }
}
                                                         

The ToolWindow

The tool window registers some events of the Visual Studio solution, document and the command object, so that changes in the solution will be noticed by the Add-In.

Collapse
private
 void
 RegisterEvents()
{
    if
 (_solutionEvents != null
)
    {
        UnregisterEvents();
    }
    _solutionEvents = _applicationObject.Events.SolutionEvents;

    //
 register new events

    _solutionEvents.Opened += new
 _dispSolutionEvents_OpenedEventHandler(
         _solutionEvents_Opened);
    _solutionEvents.ProjectAdded += new
 _dispSolutionEvents_ProjectAddedEventHandler(
         _solutionEvents_ProjectAdded);
    _solutionEvents.ProjectRemoved += new
 _dispSolutionEvents_ProjectRemovedEventHandler(
         _solutionEvents_ProjectRemoved);
    _solutionEvents.ProjectRenamed += new
 _dispSolutionEvents_ProjectRenamedEventHandler(
         _solutionEvents_ProjectRenamed);
    _solutionEvents.AfterClosing += new
 _dispSolutionEvents_AfterClosingEventHandler(
         _solutionEvents_AfterClosing);
    _documentEvents.DocumentSaved += new
 _dispDocumentEvents_DocumentSavedEventHandler(
         _documentEvents_DocumentSaved);

    _commandEvents.AfterExecute += new
 _dispCommandEvents_AfterExecuteEventHandler( 
         _commandEvents_AfterExecute);
}


private
 void
 _commandEvents_AfterExecute(string
 Guid, int
 ID, object
 CustomIn,
    object
 CustomOut)
{
    //
Command name: File.SaveSelectedItems

    //
Command GUID/ID: {5EFC7975-14BC-11CF-9B2B-00AA00573819}, 331


    //
Command name: File.SaveAll

    //
Command GUID/ID: {5EFC7975-14BC-11CF-9B2B-00AA00573819}, 224


    //
Command name: File.SaveSelectedItemsAs

    //
Command GUID/ID: {5EFC7975-14BC-11CF-9B2B-00AA00573819}, 226


    //
Command name: Build.SolutionConfigurations

    //
Command GUID/ID: {5EFC7975-14BC-11CF-9B2B-00AA00573819}, 684


    //
Command name: Project.Addreference

    //
Command GUID/ID: {1496A755-94DE-11D0-8C3F-00C04FC2AAE2}, 1113

    if
 (((Guid == "
{5EFC7975-14BC-11CF-9B2B-00AA00573819}"
) && (ID == 331
)) ||
        ((Guid == "
{5EFC7975-14BC-11CF-9B2B-00AA00573819}"
) && (ID == 224
)) ||
        ((Guid == "
{5EFC7975-14BC-11CF-9B2B-00AA00573819}"
) && (ID == 226
)))
    {
        ReadAllReferences();
    } 
    else
 if
 ((Guid == "
{1496A755-94DE-11D0-8C3F-00C04FC2AAE2}"
) && (ID == 1113
))
    {
        ParentToolWindow.Activate();
    }
}

When the solution changes, the Add-In iterates the projects contained in the solution and reads in the references of each project. It adds each reference to the list view and puts an instance of the class AssemblyReferenceInformation at the tag of the ListViewItem . This instance contains information about the project file (.csproj or .vbproj) and the assembly reference (VSLangProj80.Reference3 ), which will be used when manipulating the reference.

Collapse
private
 void
 ReadAllReferences()
{
    ClearHintLists();

    if
 ((_applicationObject != null
) && (_applicationObject.Solution != null
))
    {
        //
 Walk through the projects of the solution and search for assembly references

        foreach
 (Project currentProject in
 _applicationObject.Solution.Projects)
        {
            ReadProjectReferences(currentProject);
        }
    }
}

private
 void
 ReadProjectReferences(Project currentProject)
{
    try

    {
        if
 (currentProject != null
)
        {
            VSProject2 visualStudioProject = currentProject.Object
 as
 VSProject2;

            //
 The current project can be a 'real' project, but it can also be a

            //
 folder (see else if)

            if
 (visualStudioProject != null
)
            {
                string
 projectFullName = currentProject.FullName;

                if
 (!string.IsNullOrEmpty(projectFullName))
                {
                    FileInfo projectFileInfo = new
 FileInfo(projectFullName);

                    //
 If it is a csproj or a vbproj, add it the the list view

                    if
 (projectFileInfo.Exists &&
                        ((projectFileInfo.Extension == _csProjectFileExtension) || 
                            (projectFileInfo.Extension == _vbProjectFileExtension)))
                    {
                        //
 Add a group for this project

                        ListViewGroup projectGroup = GetProjectGroup(currentProject);

                        AddAssemblyHintsToListView(currentProject, projectFullName,
                            projectGroup, visualStudioProject);
                    }
                }
            }
            else
 if
 ((currentProject.ProjectItems != null
) && (
                currentProject.ProjectItems.Count > 0
))
            {
                //
 Project Item Type       GUID

                //
 Physical File         {6BB5F8EE-4483-11D3-8BCF-00C04F8EC28C}

                //
 Physical Folder       {6BB5F8EF-4483-11D3-8BCF-00C04F8EC28C}

                //
 Virtual Folder        {6BB5F8F0-4483-11D3-8BCF-00C04F8EC28C}

                //
 Subproject            {EA6618E8-6E24-4528-94BE-6889FE16485C}


                //
 The projects contains a sub folder -> search for projects in

                //
 these folders

                foreach
 (ProjectItem currentProjectItem in
 currentProject.ProjectItems)
                {
                    if
 (currentProjectItem.SubProject != null
)
                    {
                        ReadProjectReferences(currentProjectItem.SubProject);
                    }
                }
            }
        }
        //
 Enable fixit button, if there is something to fix

        toolStripButtonFixIt.Enabled = (_needsToBeSaved.Count > 0
);
    }
    catch
 (Exception ex)
    {
        ShowMessage(ex);
    }
}

When the user hits the 'FixIt' button, the tool changes the underlying project file. It save all projects which needs to be saved, due to an incorrect assembly path.


Convert to configuration based assembly paths

Collapse
private
 void
 SaveDirtyProjects()
{
    try

    {
        foreach
 (KeyValuePair project in
 _needsToBeSaved)
        {
            XmlDocumentHolder documentHolder = project.Value;

            SaveProject(documentHolder);
        }
    }
    catch
 (Exception ex)
    {
        ShowMessage(ex);
    }
}

private
 void
 SaveProject(XmlDocumentHolder documentHolder)
{
    string
 projectName = documentHolder.Project.FullName;

    if
 (!documentHolder.Project.Saved)
    {
        MessageBox.Show("
Please save all projects before you fix the problems."
);
        return
;
    }

    //
 Check out the project

    if
 ((_sourceControl != null
) && (_sourceControl.IsItemUnderSCC(projectName)) &&
        (!_sourceControl.IsItemCheckedOut(projectName)))
    {
        _sourceControl.CheckOutItem(projectName);
    }

    using
 (XmlTextWriter writer = new
 XmlTextWriter(documentHolder.ProjectFileName,
        Encoding.UTF8))
    {
        writer.Formatting = Formatting.Indented;
        documentHolder.XmlDocument.Save(writer);
    }
}

Visual Studio notices that the tool changed the project file and asks you to reload the project.


Reload the project

The setup project

The setup project deploys the Add-In to the AddIns folders of Visual Studio 2005 and Visual Studio 2008.
It automatically detects newer and older version, older versions will be removed before installing a new version. To create a new setup version for the Add-In, only change the version of the setup. Visual Studio will generate a new ProductCode for you, but it will not touch the UpgradeCode. With the combination of codes, Windows Installer is able to detect and update older or newer versions of the Add-In.


Setupproject

Requirements to build the solution

To build the solution, you need Visual Studio 2008. The Add-In is tested on Visual Studio 2005 and 2008 Team Developer and Team Suite.

History

no changes

<!-- Main Page Contents End -->

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Thomas Dörr


Member
Thomas has been programming in C, C++, VB and C# since many years. He works as a Senior Software Architect for Lexware GmbH & Co.KG in Freiburg, Germany.
Occupation: Software Developer (Senior)
Company: Lexware GmbH & Co.KG
Location: Germany Germany

 

Other popular Macros and Add-ins articles:

分享到:
评论

相关推荐

    Lexware:Lexware的数据库访问

    这些类的特殊之处在于您具有对Lexware数据库的完全访问权限(包括写入),并且-与已知的ODBC解决方案相反-不必打开Lexware! 执照 该库受。 NuGet软件包 描述 徽章 基础库 Lexware基本组件 NHibernate组件 全球...

    lexweb:网络上的 Lexware 信息和工具

    网络上的 Lexware 信息和工具 有关 Web 文档和在线工具,请参阅 。 在这个存储库中: ├── lw2xml : Validator and dictionary formatter ├── analysis : Xquery extraction from xhtml ├── pages_md : ...

    cteward-sa-meckerfritze:Mtefritze(Lexware)cteward的脚本操作

    "cteward-sa-meckerfritze"项目似乎是一个针对"Mtefritze"(可能是 Lexware 公司的一个产品)的自动化脚本集,由用户"cteward"创建。"Lexware"是一家知名的德国软件公司,其产品主要面向小型和中型企业,提供财务、...

    elkatoAbrechnung:汽车共享会计程序-开源

    这是在簿记框架内完成的,为此还需要一个簿记程序——一个接口被内置到簿记程序中(例如“Lexware Buchhalter”)。 捐款可以通过会计部门作为俱乐部捐款(非物质领域)或作为参与者费用(需缴纳销售税!)在发票上...

    C++ 实现新年倒计时与烟花显示效果的图形界面程序

    内容概要:该文档介绍了一个用C++编写的控制台应用程序,主要功能是在新年来临之际展示倒计时、播放音符以及渲染烟花效果,最终以艺术字体显示新年祝福语。具体实现了粒子系统来模拟烟花绽放,并定义了不同形状(如“2025”)由小点组成的图像,再逐帧更新显示,营造烟火燃放的视觉冲击力。此外还有通过 Beep 函数发出不同频率的声音以配合倒计时刻度,同时加入了输入姓名和许愿的功能增加互动感。 适用人群:熟悉C/C++语言基础的学生群体及开发者。 使用场景及目标:适用于希望通过生动有趣的小项目加深对控制台操作的理解的学习者;也可以作为一个简单有趣的案例用于节日庆祝活动中。 其他说明:由于使用了许多特定于 Windows 平台的API函数,比如 Beep(), SetConsoleTextAttribute() 和 GetStdHandle(), 本程序仅能在 Windows 上运行良好。并且涉及到了较多关于粒子系统和声音处理的知识点,在教学过程中可以借此讲解一些图形渲染的基本原理和音频处理方法。

    儿歌、手指谣、律动.docx

    儿歌、手指谣、律动.docx

    基于Msp430设计的环境监测系统(完整系统源码等资料)实物仿真.zip

    【文章链接:https://blog.csdn.net/2403_86849624/article/details/145739426?spm=1001.2014.3001.5502】基于 MSP430 微控制器的环境监测系统的设计与实现。该系统集成了温湿度、光照度、烟雾浓度以及 PM2.5 浓度等多参数的监测功能,具备数据显示、阈值设置和报警等功能。通过硬件电路与软件程序的协同工作,系统能够实时、准确地获取环境信息,并为用户提供直观的数据展示和有效的预警。文中深入探讨了系统的硬件选型、电路设计、软件编程思路及关键代码实现,经实际测试验证,该系统运行稳定、性能可靠,在环境监测领域具有一定的应用价值。关键词:MSP430;环境监测;传感器;数据处理 随着工业化进程的加速和人们生活水平的提高,环境质量对人类健康和社会发展的影响愈发显著。准确、实时地监测环境参数,对于预防环境污染、保障人体健康以及推动可持续发展至关重要。

    基于COMSOL仿真的电磁超声压电接收技术在铝板裂纹检测中的应用研究,COMSOL模拟:电磁超声压电接收技术在铝板裂纹检测中的应用,comsol电磁超声压电接收EMAT 在1mm厚铝板中激励250kH

    基于COMSOL仿真的电磁超声压电接收技术在铝板裂纹检测中的应用研究,COMSOL模拟:电磁超声压电接收技术在铝板裂纹检测中的应用,comsol电磁超声压电接收EMAT 在1mm厚铝板中激励250kHz的电磁超声在200mm位置处设置一个深0.8mm的裂纹缺陷,左端面设为低反射边界。 在85mm位置处放置一个压电片接收信号,信号如图3所示,三个波分别为始波,裂纹反射波(S0模态)和右端面回波(S0)。 ,comsol;电磁超声;压电接收;EMAT;裂纹缺陷;信号接收;波;始波;S0模态;右端面回波,电磁超声检测技术:裂纹缺陷定位与信号分析

    MATLAB环境中基于PSO算法的机器人路径规划系统:可视化界面下的障碍物自定义与终点规划,MATLAB实现PSO算法的机器人路径规划系统:支持自定义障碍物、起点终点的可视化界面操作,基于MATLAB

    MATLAB环境中基于PSO算法的机器人路径规划系统:可视化界面下的障碍物自定义与终点规划,MATLAB实现PSO算法的机器人路径规划系统:支持自定义障碍物、起点终点的可视化界面操作,基于MATLAB的粒子群优化(PSO)算法的机器人路径规划,可视化界面,可自定义障碍物,起点和终点。 ,MATLAB; 粒子群优化(PSO)算法; 机器人路径规划; 可视化界面; 自定义障碍物; 起点和终点,MATLAB PSO算法机器人路径规划与可视化界面

    五电平无刷直流电机BLDC矢量控制仿真模型研究:转速稳定、多电平可调参数的Matlab Simulink模型应用,五电平无刷直流电机BLDC矢量控制仿真模型研究:转速稳定、多电平可调参数的Matlab

    五电平无刷直流电机BLDC矢量控制仿真模型研究:转速稳定、多电平可调参数的Matlab Simulink模型应用,五电平无刷直流电机BLDC矢量控制仿真模型研究:转速稳定、多电平可调参数的Matlab Simulink模型应用分析,五电平无刷直流电机BLDC矢量控制仿真模型,给定转速1000r min,运行良好; 三电平,两电平均可做,可调参数; matlab simulink模型 ,五电平BLDC矢量控制; 仿真模型; 1000r_min; 三电平控制; 可调参数; Matlab_Simulink模型。,五电平BLDC矢量控制仿真模型:三电平可调参数,1000r/min良好运行,Matlab Simulink实现

    VSG预同步控制与电流双环控制的Matlab仿真模型研究及电力电子入门指南,基于Matlab的VSG预同步控制仿真模型:涵盖并网逆变器、VSG控制及电流双环管理等多模块研究参考文献详实电力电子仿真入门

    VSG预同步控制与电流双环控制的Matlab仿真模型研究及电力电子入门指南,基于Matlab的VSG预同步控制仿真模型:涵盖并网逆变器、VSG控制及电流双环管理等多模块研究参考文献详实电力电子仿真入门指南,VSG预同步控制matlab仿真模型 主要模块: 并网逆变器+VSG控制+预同步控制+电流电流双环控制 锁相环、三相准PR控制、PWM。 并附带参考文献,内容详实,适合电力电子入门仿真参考。 ,VSG预同步控制; MATLAB仿真模型; 并网逆变器; VSG控制; 预同步控制; 电流双环控制; 锁相环; 三相准PR控制; PWM; 参考文献。,Matlab仿真模型:VSG预同步控制及多模块协同仿真研究

    WIFI密码查看器支持Windows系统

    WIFI密码查看器支持Windows系统,简单实用,欢迎下载

    1998-2022年各地级市产业结构高级化数据(含原始数据+计算过程+结果)

    1998-2022年各地级市产业结构高级化数据(含原始数据+计算过程+结果) 1、时间:1998-2022年 2、指标:第二产业占比、第三产业占比、产业结构高级化 3、来源:城市统计NJ 4、计算说明:产业结构高级化=第三产业占比/第二产业占比 5、范围:290+地级市 6、缺失情况:缺失情况与年鉴一致,表内附有年鉴国内生产总值构成(三次产业占比)原始数据,以2022年地级市名单进行统计整理,2017年年鉴未统计全市层面数据,为市辖区数据

    Skyline TerraExplorer Pro 5.1.3

    Skyline TerraExplorer Pro 5.1.3

    v4l-utils-0.9.5-4.el7.x64-86.rpm.tar.gz

    1、文件内容:v4l-utils-0.9.5-4.el7.rpm以及相关依赖 2、文件形式:tar.gz压缩包 3、安装指令: #Step1、解压 tar -zxvf /mnt/data/output/v4l-utils-0.9.5-4.el7.tar.gz #Step2、进入解压后的目录,执行安装 sudo rpm -ivh *.rpm 4、更多资源/技术支持:公众号禅静编程坊

    基于CNN,RNN 和NLP中预训练模型构建的多个常见的文本分类模型。(毕设&课设&实训&大作业&竞赛&项目)

    项目工程资源经过严格测试运行并且功能上ok,可实现复现复刻,拿到资料包后可实现复现出一样的项目,本人系统开发经验充足(全栈全领域),有任何使用问题欢迎随时与我联系,我会抽时间努力为您解惑,提供帮助 【资源内容】:包含源码+工程文件+说明(如有)等。答辩评审平均分达到96分,放心下载使用!可实现复现;设计报告也可借鉴此项目;该资源内项目代码都经过测试运行;功能ok 【项目价值】:可用在相关项目设计中,皆可应用在项目、毕业设计、课程设计、期末/期中/大作业、工程实训、大创等学科竞赛比赛、初期项目立项、学习/练手等方面,可借鉴此优质项目实现复刻,设计报告也可借鉴此项目,也可基于此项目来扩展开发出更多功能 【提供帮助】:有任何使用上的问题欢迎随时与我联系,抽时间努力解答解惑,提供帮助 【附带帮助】:若还需要相关开发工具、学习资料等,我会提供帮助,提供资料,鼓励学习进步 下载后请首先打开说明文件(如有);整理时不同项目所包含资源内容不同;项目工程可实现复现复刻,如果基础还行,也可在此程序基础上进行修改,以实现其它功能。供开源学习/技术交流/学习参考,勿用于商业用途。质量优质,放心下载使用

    风力永磁同步发电机设计及仿真分析:Maxwell电磁仿真在1.5兆瓦风力发电机中的应用与工况研究,基于Maxwell电磁仿真的1.5兆瓦风力永磁同步发电机设计与工况分析,1.5兆瓦风力发电机 maxw

    风力永磁同步发电机设计及仿真分析:Maxwell电磁仿真在1.5兆瓦风力发电机中的应用与工况研究,基于Maxwell电磁仿真的1.5兆瓦风力永磁同步发电机设计与工况分析,1.5兆瓦风力发电机 maxwell电机电磁仿真 风力永磁同步发电机设计,分析及工况分析 ,关键词:1.5兆瓦风力发电机; Maxwell电机电磁仿真; 永磁同步发电机设计; 永磁同步发电机分析; 工况分析。,Maxwell电机电磁仿真:风力永磁同步发电机设计与工况分析

    untiy XChart图表插件

    XChart插件,用来做图表,但是图表不能做出很好看的样式

    基于FVC2002数据集的MATLAB指纹识别系统研究与应用,基于MATLAB的FVC2002指纹数据集识别系统研究与应用,基于MATLAB的指纹识别系统 数据集为FVC2002指纹数据集 ,基于MA

    基于FVC2002数据集的MATLAB指纹识别系统研究与应用,基于MATLAB的FVC2002指纹数据集识别系统研究与应用,基于MATLAB的指纹识别系统 数据集为FVC2002指纹数据集 ,基于MATLAB; 指纹识别系统; FVC2002指纹数据集,基于MATLAB的FVC2002指纹识别系统

    甲子光年智库报告:2025DeepSeek开启AI算法变革元年

    内容概要:本文由甲子光年智库发布,探讨了人工智能发展的拐点以及DeepSeek作为AI技术变革标志性产品的现状和前景。文中指出,人工智能的发展经历了从技术驱动到需求驱动的战略转变,正处于第三阶段向第四阶段过渡时期。DeepSeek通过对算力的极致优化,不仅展示了性价比极高的训练路径,还引领了算力效率的新拐点。2025年起发布的AI模型逐渐减少参数量,以支持更多场景下的高效部署,特别是移动终端和边缘计算领域。与此同时,以深度强化学习为核心的R1训练框架与非Transformer架构下的液态神经网络模型(LFM)共同开启了新一轮算法革新浪潮。 适用人群:对AI发展趋势感兴趣的行业从业者和技术爱好者。 使用场景及目标:用于了解AI技术的当前瓶颈与发展方向,把握算法创新、算力优化等方面的具体进展。适用于投资者研判行业趋势、技术人员跟进最新研究成果。 其他说明:文章详细阐述了DeepSeek的产品特点与市场反响,以及在全球AI治理框架下各国政府的态度变化。值得注意的是,DeepSeek的性价比优势促进了普惠AI的发展,使更多的中小企业和个人开发者获得了参与高水平AI项目的可能性。此外,文章还提及了美国政府内部关于AI政策的变化情况,揭示了中美两国在未来科技竞争格局下的潜在博弈态势。

Global site tag (gtag.js) - Google Analytics