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

  • SEARCH
  • Home
  • 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 8707249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:49:25+00:00 2026-06-13T03:49:25+00:00

Say I’ve got a .vsprops file that is used in a solution. In that

  • 0

Say I’ve got a .vsprops file that is used in a solution. In that file, various variables are defined such as int_dir for intermediate build results and log_dir for the log results.

Usually, these variables get set to default values (relative to the solution).

For me, I’d like to set these two variables to my ramdisk (R:), i.e. no longer

$(SolutionDir)\intermediate

but

R:\myproject\intermediate

If I change the .vsprops file directly, the source control (Git) will mark it as modified.

Is there a way in VSPROPS so that I could check maybe an environment variable and if this variable is not set, the default is used?

If this is not possible, I’d also be interested in a solution for Git to overcome this (but not --assume-unchanged and not .gitignore because maybe other changes in that file could be relevant).

  • 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-06-13T03:49:27+00:00Added an answer on June 13, 2026 at 3:49 am

    A pure Git solution could use a gitattribute filter driver:

    content filter

    It would involve a smudge script, executed on git checkout, which would:

    • detect if you want to change $(SolutionDir) (for instance, test for an environment variable with the updated path in it)
    • detect the right file (xxx.vsprops.tpl) content (the script doesn’t know the file names or path it operates on)
    • generate the actual .vsprops from a .vsprops.tpl (template file) which is the one being versioned (the .vsprops is no longer versioned)

    You can add a clean script which would preserve (on git commit) all the modification done in the .vsprops file back to the .vsprops.tpl, except for the $(SolutionDir) line.

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

Sidebar

Related Questions

Say I have a SSI script that uses exec, or a PHP script that
Say we have two pointers to objects that can contain a property equal and
Say I have a list that contains n lists. Is there a neat way
Say in my js file I want to have var NO = 0; var
Say I have a higher kinded type SuperMap[Key[_],Value[_]]`. Suppose now that I had something
Say I have a bash script file config.sh . It's meant to be source'd
Say I have 2 div s with the same CSS class that are stacked
Say I have function with_foo that takes a block, and wrap it around a
Say, if we already have aScreen that points to the main screen, by UIScreen
Say that I have a singleton class (Downloader) responsible for downloading and persisting files.

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.