Results 1 to 4 of 4

Thread: someone explain the "build Action" for a file...

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    someone explain the "build Action" for a file...

    I'm especially wondering what the "content" build action means for a file... (if you click on a file in the solution explorer, there is a property called build action)
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Lively Member
    Join Date
    Apr 2004
    Posts
    95
    I'm not entirely certain how this works, but content just puts the file in the main folder of your application, unless the file itself is in a subfolder you created, in which case it recreates that structure. Resource I believe should create an entry in the resource XML file for your application, although I have tested this and it doesn't work like I expected. Compile only works for files containing code obviously, and embedded might put the file in the main application's .exe but again, I'm not certain.

    Once you figure it out, maybe you can enlighten me on the difference between build and rebuild. Don't laugh, I've only been coding for a month.

  3. #3
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    This is especially important in C++ projects:

    Rebuild does a complete compile of all code in the project including precompiled headers and such.

    Build just compiles the files edited since the last build I think.
    I don't live here any more.

  4. #4
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    From MSDN
    The "Build Action" property tells the compiler what to do with a particular file.

    Embed: Include the file as an embedded resource.

    Compile: Compile the file.

    Content: Files designated as content files can be referenced by Visual Studio setup projects.

    None: Do nothing. Use this action to add documentation or other uncompiled files to your project for reference purposes without embedding them in an assembly.
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

Posting Permissions

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



Click Here to Expand Forum to Full Width