Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3317176
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:33:24+00:00 2026-05-17T22:33:24+00:00

Is it possible for MSBuild to build an EXE from purely in-memory resources. For

  • 0

Is it possible for MSBuild to build an EXE from purely in-memory resources. For example, let’s say I built a .csproj and a couple of forms and code-behind and saved to a memory stream, could MSBuild use these streams to build out an EXE?

The purpose is that nothing is written to disk except the final EXE.

If so, is there a good blog post or other reference about this subject?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T22:33:25+00:00Added an answer on May 17, 2026 at 10:33 pm

    MSBuild doesn’t create an EXE file, a compiler does. None of the Microsoft compilers currently support compiling from a memory stream. System.CodeDom provides an illusion of it but it actually uses the disk.

    There’s stuff coming in a future version of C#, plans are to provide ‘compiler as a service’ feature. Current internal project name is Roslyn. Whether that will affect the build process is murky, I doubt it but have no real clue how it will be integrated with the existing compiler, if at all.

    One of the key properties of Windows is that there is only a slight difference between memory and files. Anything in memory is also in a file, the paging file for example. Memory is only a fast way to read and write file data. When you read or write a file, you are actually reading/writing memory. The file system cache. If it is big enough, it is for most any C# project, the compiler will read that same memory without ever hitting the disk. It will only slow down when the file hasn’t been read or written recently.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm interested in figuring out how to automate a build from Visual FoxPro similar
I'm using the line below to have MSBuild build a Delphi 2010 groupproj: MSBuild
I've found that in the .csproj for an ASP.NET MVC project there is the
We have a few C++ solutions and we run some build scripts using batch
I have an application that is a not so simple Windows service (C#). I
I'm having an issue setting up one of my projects in TeamCity (v4.0), specifically
I'm new to NAnt and have been able to create a <target> which 1)
I've created a Windows service in C#, installed it on a server and it
I'm possibly just blind, but is there a command line to specify conditional compilation
We are using .NET 3.5 with VS2008. I have a solution with ~20 projects

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.