I want to reverse engineer a current c# Project at work. I was told to use enterprise architect. But where can I select to import the source code? I am using Version 10 Corporate Edition and it seems to me there are big differences to earlier Versions. When I select a Project there are no Options like "Code Engineering" as I have seen in many youtube videos or text tutorials.
The top-most level in the model tree consists of one or more "root nodes", sometimes referred to as "models" in the help file. One of these is created when the project is created, by default it is called "Model".
This level is only for organizing model packages and is very restricted in what you can do with it. You cannot place diagrams or classes directly under a root node, and you cannot reverse-engineer code to a root node. Root nodes are not, strictly speaking, UML packages.
Instead, you must create a package in the root node. The first level below the root is called "view", but view packages are regular UML packages and you can do anything with them, including show them in diagrams, draw connectors to them and import code into them.
When you create a view, EA asks you what icon to display. This is GUI sugar only, and has no effect on what you can place inside the package.
The thing to keep in mind is that while you can move regular packages freely around the tree if you want, you cannot move root nodes or view packages to other levels. In other words, you cannot turn a view into a root node and you cannot place a view inside another view. For this reason, it might be a good idea to create a regular package inside your view before you import your code.
So: create a view inside the "Model" root node, and preferably another package in the view. You will be able to import code into either.
Addendum after the screenshot was added:
You need at least the Professional license to do code engineering at all. If you've got that, you're either working in a project where you don't have the necessary privileges to do reverse engineering (and need to contact the project administrator to get it), or you've selected a command set that doesn't include it.
EA 10, on first start after installation, asks if you wish to customize the GUI. This actually means that a number of menu items are removed. If you can't find a menu item, go to View -- Workspaces and Commands -- Commands, and select Complete.
Solved it. Somehow some options were hidden in the default profile .... great. Reconfigured the profile and now it works.
Thanks anyway
Related
I am trying out the Code Map feature in VS 2017 Enterprise. However the maps get cluttered quickly. One can use the "New Graph from Selection" to create a new graph and then drill down further. However there seems no way to link the parent map to the child map, so navigating from one to another becomes very tricky. I would have expected to be able to put in a file link of some sort.
Any thoughts on this please?
It seems that one cannot do it in the GUI, one has to add a "reference" attribute to the Node element in the DGML file
<Node Id="#29" Category="CodeSchema_Method" Bounds="629.838307291667,-192.520041836548,154.936666666667,25.96" CodeSchemaProperty_IsPrivate="True" DelayedCrossGroupLinksState="Fetched" Label="MyMethod" UseManualLocation="True" Reference = "Graph1_1_1_1.dgml"/>
You then get a "go to reference" menu option for the relevant node.
Hope this is helpful to someone.
I am currently doing a school project with two other members. We're using Team Foundation Server with Visual Studio to share the project and for collaboration.
I've added the project to Source Control (File > Add to Source Control > Choosing Team Foundation Version Control > Choosing Team Project Location) and checked in all changes.
Funny thing is, while my groupmates are able to connect to the server and configure workspace mappings, Source Control Explorer is empty for them. Mine, however, shows the appropriate files and folders (see image below)
Source Control Explorer on my side. On my groupmates' machines, Source Control Explorer is empty. All it shows is "beitrik.visualstudio.com\DefaultCollection" under the "Folders" section.
Is there any way I could solve this? Right-clicking "beitrik.visualstudio.com\DefaultCollection" and selecting Get Latest Version does not work either, since the resulting message will be that "All files are up to date".
Thank you!
Just as Daniel Mann mentioned, the other two member are working as a stakeholder that cannot contribute to Code.
As a stakeholder, you can:
View, add, and modify items on the backlog
View, create, and modify work items such as stories, features, and bugs
View, create, and save queries
View team dashboards and portfolio backlogs
Create and receive alerts when changes are made to work items
Submit, view, and change your feedback responses.
You can have 5 free users with Basic Access which can contribute to Code. Configure it via following steps:
Open your VSTS account from Web Portal.
Select "Users" panel.
You can add or edit the users on this tab, change the access level to "Basic" will give the access to Code.
Refer to this link for more details: Manage users and their access levels in your Visual Studio Team Services account
You have your other contributors at the Stakeholder access level. Stakeholders cannot contribute code; it's a level of permissions intended for people who will be contributing requirements and monitoring project progress, but not actively contributing code. Stakeholders do not require any licensing, which is the big draw.
However, you get up to 5 users (including yourself) for free, so you can add them to the Basic level so they can contribute code. You can do that by going to the "Users" tab from the root of your project (e.g. http://youraccount.visualstudio.com).
I am still getting used to working with c# and wpf. I have made a number of smalls apps to do single tasks. To give the same feel to the apps my company uses I use the same logo, colours and layout.I am also developing a project settings class to save the project variables to file using a json file ( I hope ) and a slide out panel to give the user access to the project variables.
It would make sense to save this as a sort of template / base project so that every time I start a new project I can use this base project to shortcut the workload but every time I to do this I get errors. I have read about class library but am not certain if the is correct way forward or should be some sort of template.
Can someone explain if want I want to do is possible in wpf and what is the correct way forward please. Any questions on here (this site) assumed a bit too much knowledge for me and I can't get my head around the msdn references. So any good links would be helpful
Thanks
In Visual Studio, once you have the basic solution template that you want.
File->Export Tenplate.
Create a new Project Template.
Or if you just want to create a reusable theme. Create a class library and put some ResourceDictionaries inside with your styles and templates, etc. Then reference it from each new project and import the resource dictionaries. This solution would probably be easier to maintain over time as you could easily replace the referenced DLL with a new version when you make changes to the common UI theming.
I have a tutorial to implement "My Own ILDASM" , may I know what approach i can use.
I have visual studio 2010 installed on my computer , i added MenuStrip and OpenFIleDialog.
My Questoins
1) I need to add a treeview control to display type members hierarchy in a tree
any direction will be enough
after selecting a dll from winform , how can i show that dll info in the tree view.
Any info will be appreciated.
First, bone up on reflection.
Then, build up the namespaces and have those as top level tree view items. Next get all the Types. For example: Assembly.GetTypes.
From here you should be getting the hang of it. For each type, get the methods, properies, fields etc and make the subnodes.
This might sound a bit of an odd question but I know what I want to achieve, just don't know if it's possible.
Firstly, I'd like to be able to create a visual studio project that the 2 developers that work with me can use as a basis for all new websites. I want to drop all the common files that we use in there, like jQuery, CMS files etc. so that every time they start a new project they don't have to worry about all of that stuff. I guess to do this I just set up a project and "File > Export Template" ?
Now, here's the tricky bit...
When you open up one of the default templates in VS it asks you a few questions, such as if you want to use a master page or if you want to use code behind etc.
What I would like to do is set up something similar so that when you use the project template it asks you what version of jQuery you want to use so that it can import the right file, or for example it might ask you if you want to include certain user controls that the CMS contains. If you tick the box then the folder with the necessary user controls would be put in your new project for you.
I know MS can do this but can a user like me include functionality like that in my own project template?
Hope that makes sense.
Some more digging turned up the iWizard interface and this tutorial...
http://msdn.microsoft.com/en-us/library/ms185301