Changing project files programmatically

WE have lot of project files in our solutions and we want to write small tool which will check if project files contains only what they should contains. E.g. they don't have TargetPlatform set to AnyCPU etc. Are there any APIs and components available which
are able to read csproj files and provide corresponding object model ? We are not interested in solution where we need to parse project file our self as standard xml file et.

>>Are there any APIs and components available which are able to read csproj files and provide corresponding object model ?
Not any public ones but please refer to the following page for more information about how you could parse Visual Studio projects and solution files:
http://stackoverflow.com/questions/707107/library-for-parsing-visual-studio-solution-files
Please also remember to mark helpful posts as answer to close your threads and then start a new thread if you have a new question.

Similar Messages

  • How can I change .RDL files programmatically?

    p.MsoNormal, li.MsoNormal, div.MsoNormal
    {margin:0cm;margin-bottom:.0001pt;text-align:right;direction:rtl;unicode-bidi:embed;font-size:12.0pt;font-family:'Times New Roman';}
    @page Section1
    {size:595.3pt 841.9pt;margin:72.0pt 90.0pt 72.0pt 90.0pt;}
    div.Section1
    {page:Section1;}
    Is there any suitable collection of classes for making changes in .RDL files? I want to manipulate .RDL files for building my reports programmatically. But I have not found any programming structure or tool yet.
    The way is introduced in MSDN is not a structural way for making enormous changes in .RDL files.
    thanks,

    Hi,
    If you want to manipulate programmatically RDL files, you can use XML Schema Definition Tool and C#. (xsd.exe in Visual Studio)
    http://msdn.microsoft.com/en-us/library/x6c1kb0s(v=vs.100).aspx
    At the start of the RDL File you have:
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns:cl="http://schemas.microsoft.com/sqlserver/reporting/2010/01/componentdefinition" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition">
    Copy / Paste "http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition/" in your web brower and download the
    ReportDefinition.xsd file.
    After download, run this command
    xsd reportDefiniction.xsd /C
    It will generate a class file with this name reportDefinition.cs
    You can now serialize, update and save your RDL files in one a C# Object.
    I use this method to read and generate documentation about all my report, but i never change programmaticaly a report. (I'm not really sure that report server like that)
    An example to XML file reading, data changing (not a ReportDefinition Class)
    XmlSerializer serializer = new XmlSerializer(typeof(ROOT));
    // XML => Object
    ROOT myFile = (ROOT)serializer.Deserialize(reader);
    myFile.MESSAGE.HEADER[0].ORDER_NO = (i + _startIndex).ToString();
    FileStream newFile = new FileStream(this.dirName + "\\xml_generated\\XML_" + (i + _startIndex).ToString() + ".xml", FileMode.Create);
    serializer.Serialize(
    newFile,
    myFile
    I hope this information helped you, let me in touch if it's respond to your question.
    Good luck,
    Arnaud

  • Moving or changing project files

    How to move files from DEV to prod and vice versa?
    please help
    thanks and regards
    lu

    Hi,
    Could you please tell whether you are using BPEL (OR) OSB?
    Thanks,
    SV

  • How to change default value in "Project file" dialog

    I'm new to Labview, and I've encountered an example with a dialog that allows to define a path to a file.  If I open the properties on the block diagram of this block the name of the block appears to be "Path Properties: Project file:"   The default value points to a different place than where the file installed and the VI won't run untiI I change the path.  If I save and open the file, it doesn't remember the change.  When the vi is running I can right click the text and there is an option to reinitialize to default.  I've rooted around all over the place and can't find where this can be set or changed.  How do I change this? 

    On the front panel, change the control to the desired value.
    Now, right click on the control, select Data Operations and Make Current Value Default.
    -Matt Bradley
    ************ kudos always appreciated, but only when deserved **************************

  • I recently had some 8mm film transferred to DVD. I am trying to edit the film clips using Premier Elements 4.0.  Some of the film clips copy into the project but others don't. I tried copying the VOB filed onto my hard drive and then changing the file ext

    I recently had some 8mm film transferred to DVD. I am trying to edit the film clips using Premier Elements 4.0. so I can reburn the films on a single BluRay disc. Some of the film clips copy into the project but others don't. I tried copying the VOB filed onto my hard drive and then changing the file extensions on the VOB files to MPEG but this was no help. Some of the VOB files contain numerous film clips but my software does not appear to be able to recognize them as such. I need to know if replacing my old Premier Elements with the new Version 13 would solve this problem or not. Any advice would be greatly appreciated!
    Bob

    Bob
    What do you have now.....
    What computer operating system do you have?
    We can go into the finer points of source and your intentions, but for now it would appear that you are using SD 4:3 source media to get to a HD 16:9 result. Lots to discuss in this regard.
    What was given to you on the DVD disc? DVD-VIDEO 4:3 or something else?
    If DVD-VIDEO on DVD disc, you should expect to find on the disc a folder named VIDEO_TS. That is your target for your video files.
    If you were given a DVD-VIDEO on DVD disc, then all you want from it are the video files, specifically
    VTS_01_1.VOB, VTS_01_2.VOB, and so on through that series until possibly getting to
    VTS_02_1.VOB, and so on. How many files you have beyond the VTS_01_1.VOB file will depend on the size of the DVD-VIDEO.
    Does the above scenario apply to you?
    The alternative might be someone giving a DVD disc (data disc) which contains just the VTS files mentioned which were copied from
    the VIDEO_TS Folder. So, you do not get the whole VIDEO_TS Folder, just the essential video files. Does this scenario apply to you.
    I see no need to replace your Premiere Elements 4 with a later version unless you have a huge project and need a later version that will be a 64 bit application running specifically on Windows 7, 8, or 8.1 64 bit computer.
    Consider...Premiere Elements 4 and if you have DVD-VIDEO on DVD....
    1. Place the DVD disc in the burner tray
    2. Open Premiere Elements 4 and set the project preset for NTSC DV Standard (assuming you are working in a NTSC setup)
    3. Go to
    Get Media
    "DVD, Digital Camera, Mobile Phone, Hard Drive Camcorder, Card Reader"
    "Adobe Premiere Elements - Media Downloader" and its Advanced dialog.
    Set the Source in the latter dialog for the drive which has your DVD disc inserted in its tray
    You should see your VTS_01_1.VOB thumbnail in the "Adobe Premiere Elements - Media Downloader" Advanced dialog.
    With this VOB selected, click on Get Media to get the file from there into the project.
    Should work fine.
    Complications may be involved if the people who processed your footage gave you something other what is described above.
    Please review and consider, and then we can plan our project strategy accordingly.
    Thank you.
    ATR

  • Changing the display name of project file folders for TOC

    I'm interested in changing the display names of the project file folders for my TOC. For example, I want to name the folder "01-intro" so that it is short and lowercase. But I'd like the TOC to say "Introduction to the System." I know I can manually rename the folder in the TOC either through its properties or by right-clicking => Rename, but I auto-create the TOC occasionally and I don't want to have to rename every folder every single time.
    Does anyone know if there is a way to set a persistent property for the folder so that its display name in the TOC is different? I am using RoboHelp 9. I saw an option called "Detail" in the properties of the WebHelp layout in RoboHelp 8 that seems like it may have done that, but I no longer see this property in RoboHelp 9.
    Any assistance would be much appreciated. Thank you.

    I think the lack of response confirms that if you are going to use Auto Create, you have to accept the way it is.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • [svn] 4267: Change path to Assets.swf in eclipse . project file from full hardcoded path to use the FLEX_SDK variable as the base path .

    Revision: 4267
    Author: [email protected]
    Date: 2008-12-09 10:32:36 -0800 (Tue, 09 Dec 2008)
    Log Message:
    Change path to Assets.swf in eclipse .project file from full hardcoded path to use the FLEX_SDK variable as the base path. There is still an issue with Assets.swf not getting referenced correctly. If you import the framework project from Blazeds/trunk into Eclipse and get an error related to Assets.swf or that says "Unable to export SWC oem" for the time being try right clicking on the framwork project in Eclipse and selecting properties. Then in the properties panel, select Flex Library Build Path and then the Assets tab. On the Assets tab, check the check box next to Assets.swf and click Ok. This usually fixes the reference for me.
    Modified Paths:
    blazeds/trunk/development/eclipse/projects/flex/3.0/framework/.project

    Revision: 4267
    Author: [email protected]
    Date: 2008-12-09 10:32:36 -0800 (Tue, 09 Dec 2008)
    Log Message:
    Change path to Assets.swf in eclipse .project file from full hardcoded path to use the FLEX_SDK variable as the base path. There is still an issue with Assets.swf not getting referenced correctly. If you import the framework project from Blazeds/trunk into Eclipse and get an error related to Assets.swf or that says "Unable to export SWC oem" for the time being try right clicking on the framwork project in Eclipse and selecting properties. Then in the properties panel, select Flex Library Build Path and then the Assets tab. On the Assets tab, check the check box next to Assets.swf and click Ok. This usually fixes the reference for me.
    Modified Paths:
    blazeds/trunk/development/eclipse/projects/flex/3.0/framework/.project

  • How to change the file type from IMOVIE PROJECT to other types of file

    how to change the file type from IMOVIE PROJECT to other types of file??
    thank you very much for your help=]

    I am not sure what you mean, but once you make a project. Then go to the share menu and you can export the project to iDVD, itunes, mobileme, quicktime.
    Share export quicktime movie will allow you to export to a variety of codecs. What specific export are you looking to share the movie in? What is the final source that the movie will be displayed?

  • Sharepoint 2013, MS Project 2013 - Task List not updating when the project file is changed

    Hi
    I have created a SharePoint task list and timeline from a MS Project 2013 file on my PC. I have then created a new Project file from that task list which then places the new project file in the site asset folder and provides me with a synced copy. I now
    only use the SharePoint copy of the project file in my MS Project as any change I make to the project file should be reflected in the Task list and vice-versa
    However if I add some tasks into the middle of the project with MS project, the SharePoint Task list is not updated to show these additional tasks. If I open the SharePoint task list with MS Project - from the task list toolbar - the project file shows the
    added tasks.....so the MS Project file in the site asset folder is correct  but the tasks in the SharePoint task list is not being updated
    Anyone seen this before ?
    Thanks
    Geoff

    Hi Esben,
    According to your description, the error occurred when opening the task list with the content approval enabled in Project.
    Per my knowledge, when we enable the content approval for the task list, the field named Approval Status which is required will be created in the list.
    However, if a project plan doesn’t contain a field that is required in SharePoint, the plan won’t sync.
    The error occurs because of the required field Approval Status when the content approval is enabled in the task list, so we need to add the required field as a custom field in Project.
    More information:
    Sync with a SharePoint tasks list:
    http://office.microsoft.com/en-in/project-help/sync-with-a-sharepoint-tasks-list-HA102828524.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • [svn:osmf:] 11242: Updating the Flex project file to take into account the NetStreamContentProtectableTrait 's name change.

    Revision: 11242
    Author:   [email protected]
    Date:     2009-10-28 13:26:52 -0700 (Wed, 28 Oct 2009)
    Log Message:
    Updating the Flex project file to take into account the NetStreamContentProtectableTrait's name change.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/.actionScriptProperties
        osmf/trunk/framework/MediaFramework/.flexLibProperties

    
    Hi,
    This topic seems to be related to VBA coding, better to post your question to the forum for Excel Developer
    http://social.msdn.microsoft.com/Forums/office/en-US/home?forum=exceldev
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Tony Chen
    TechNet Community Support

  • Adobe Captivate asks me to save my project file when I dont make changes...

    Hello,
    I think it is confusing Adobe will ask if I want to save the file even if I don't make any changes... Maybe this is something they can change in the next version?
    Ryan

    I have had this happen. It's odd. Some things seem to get saved, while others do not.  I haven't tracked it to be certain, but as I recall Bookmark changes or changes to File Properties, for example, won't be saved while working in the Content or Tags panel may be.  No idea why this is the case. 
    As mentioned above, it's always a good idea to make interim Save As's using a different file name (File01, File02, etc.) so if your document should become corrupt during the editing process you have an earlier version to go back to. 

  • Using iMovie to save project files to external hard drive?

    I have a MacBook Pro with very limited space on the internal hard disk drive. I also have a few FireWire external hard drives.
    A friend recently gave me his Hitachi DZ-HS300A mini-DVD camcorder so I could copy footage off of it, load it into my machine, edit it and upload it (several minutes) to YouTube. He can't do this because he lives in a remote area where there is no broadband yet.
    I almost never use iMovie. I was wondering if there is a way to save the project file to an external FireWire drive so that there will be no large video files clogging up my laptop's internal hard drive. Can this be done? Is there an iMove preference I have to change?

    You should generally leave the iMovie Project file on the boot drive. The Project File is mainly a small text file with in and out points.
    The iMovie Event file is where the video assets are stored. You can store events to an external hard drive in two ways:
    1) As you import from the camera, you will see an import screen. You can select the external drive on the import screen
    2) If the event is already on your internal drive, you can click View/Events By Volume. Now you can drag and drop the event to the external drive in the Events SOurce List in iMovie.
    For your external drive to be visible to iMovie, it must be formatted HFS+ or HFS+ (journalled).

  • Can't open Zend Project files using Zend Studio

    Hi there,
    I've been in contact with Zend about this issue but they assure me that they don't have this problem with their Mac's and no other Mac user has reported this fault.
    So here I am asking in the only other logical place I can think of.
    Basically I want to double click on a Zend Project File (.zpf) and have it open in Zend Studio.
    The first time I tried setting the desired application to ZDE.app it came up with an unknown error I think it was -10814? And each subsequent time I try to open the project file I get Zend Studio telling me it is an unrecognized file type.
    If you could give me any suggestions or leads to follow I would greatly appreciate it.
    Thank you for your time,
    Ant

    HI webchalk and Welcome to Apple Discussions ...
    Ok, when you say you tried setting the desired application to ZDE.app ... have you tried this?
    To open a document with a specific application:
    In the Finder, select the document and choose File > Get Info.
    In the Info window, click to show the "Open with" pane.
    Choose the application you want to use from the pop-up menu.
    If you want all documents that have the same file type as this one to open with the same application, click Change All.
    Carolyn

  • Error Can't open project file

    Was working fine on a project. Closed the project tried to access it again got this error message.
    Error Cant open project file: {0}
    The project is there when I check in windows explorer. Can anyone help? I have a back up so I am able to continue working but I am concerned has to how this may have happened.
    Regards
    Betty

    Hi Betty,
    The application bean might have gotten saved inadvertantly with an unnoticed / unintended change after you copied the code from it. Its a slim chance but could have just happened. If by chance it was so, then the IDE would have had difficulty in recognizing the file as a result of which that error was thrown.
    In case you are sure the file was not modified could you please provide us the steps to reproduce the problem.
    Cheers
    Giri :-)
    Creator Team

  • Unable to open project file

    Hello!
    I'm in desperate need of a miracle here. I've already read over other solutions to this problem, but perhaps someone can come up with something I haven't. I'm using Final Cut Pro 7.0.3, and I finished a project last month that took a lot of editing work. After the project finished, I cleaned up my folders as usual, copying over all the media and the FCP project file over to my network external hard drive. I then made the horrific mistake of deleting my autosave files. Little did I know I'd want to access the project later, and instead of opening and having to reconnect my media, it just comes up with the error of "unable to open project file".
    I've tried copying the project file I saved in November back to my local computer and opening it. I tried dismounting the network external hard drive and opening my local project file. I tried adding a .fcp to the end of the file's name. And I downloaded Pro Maintenance Tools in a hope that it could fix the corrupted file, it said it was fixed, but I still can't seem to open it. All my other FCP files are opening just fine.
    I'm also interested if anyone knows whether my deleting everything FCP created except for the project file might be why it crashed?
    Thank you in advance to anyone who even reads this hoping they can help.

    Sorry, I'm out of ideas. Perhaps someone else with greater tech skills will chime in on this and be able to suggest a solution. Deleting or changing the location of the files you mentioned earlier in the thread can certainly complicate and add time to  a new  edit but should not have caused the problem you've encountered in getting the project file to open.
    Good luck.
    Russ

Maybe you are looking for