See the top rated post in this thread. Click here

Results 1 to 5 of 5

Thread: Compiling with Microsoft Visual Studio 2005 C# Express?

  1. #1
    AUGI Addict truevis's Avatar
    Join Date
    2004-07
    Location
    Massachusetts, USA
    Posts
    1,191
    Login to Give a bone
    0

    Default Compiling with Microsoft Visual Studio 2005 C# Express?

    I am just trying to make RoomSchedule.dll from the SDK samples. Most of the Debug menu is greyed-out -- I've got RoomSchedule.csproj loaded.

    What am I missing?
    Last edited by truevis; 2008-10-22 at 03:22 PM.

  2. #2
    100 Club
    Join Date
    2007-10
    Location
    Brisbane
    Posts
    138
    Login to Give a bone
    1

    Default Re: Compiling with Microsoft Visual Studio 2005 C# Express?

    normally I have to delete and re-add the reference to revitapi.dll when i run a sample, also copy it to another folder and I think sometimes they are made read-only, so check that on the files..

  3. #3
    Member
    Join Date
    2008-06
    Location
    Dallas, TX
    Posts
    7
    Login to Give a bone
    0

    Default Re: Compiling with Microsoft Visual Studio 2005 C# Express?

    If you are trying to use express editions to debug DLLs (as all the Revit API work done in this context is) then you have to start debugging using an external program (Revit).

    Normall you can simply go to your project's properties > debug tab and set a path to an external program for debugging. However, the express editions of C# and VB are broken or missing.

    After some digging around I found this workaround:

    Go to the directory your project is in and locate a file titled XXXX.csproj.user and open it with your favorite text editor. It probably contains only one line:

    <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

    In order to debug with an external application add the following lines:

    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <StartAction>Program</StartAction>
    <StartProgram>C:\Program Files\Revit Structure 2009\Program\Revit.exe</StartProgram>
    </PropertyGroup>

    Now, when you load your project and hit debug Revit should open and alas you are in business.

    Hope this helps! Oh, and make sure to add your external tool to the Revit.ini.

    Chris

  4. #4
    Member
    Join Date
    2008-03
    Posts
    16
    Login to Give a bone
    0

    Default Re: Compiling with Microsoft Visual Studio 2005 C# Express?

    Old post but I'm having an issue when I tried this workaround. I'm new to programming and don't know how to fix this. Whenever I open the project back up (after pasting the text into my XXXX.csproj.user file) I get the attached error. Any ideas?
    Attached Images Attached Images

  5. #5
    AUGI Addict truevis's Avatar
    Join Date
    2004-07
    Location
    Massachusetts, USA
    Posts
    1,191
    Login to Give a bone
    0

    Default Re: Compiling with Microsoft Visual Studio 2005 C# Express?

    I don't have an answer for brian_derrick, but does anyone have an update of the workaround to use for Visual Studio Express 2008?

Similar Threads

  1. Visual Studio 2013 (Express)
    By peter in forum Bridging the Gap: LISP -> .NET -> LISP
    Replies: 6
    Last Post: 2014-01-14, 05:40 AM
  2. Microsoft Visual Studio 2010
    By Saimon in forum Revit - API
    Replies: 7
    Last Post: 2010-07-07, 02:52 PM
  3. Visual studio 2008 Express
    By jaap.spierenburg in forum Dot Net API
    Replies: 4
    Last Post: 2010-02-09, 07:44 PM
  4. Consolas Font Pack for Microsoft Visual Studio 2005
    By Mike.Perry in forum Dot Net API
    Replies: 1
    Last Post: 2006-05-04, 03:14 PM
  5. Visual Studio 2005 "Express" versions
    By Solomon in forum Revit - API
    Replies: 12
    Last Post: 2005-12-02, 04:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •