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 1110461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:23:59+00:00 2026-05-17T02:23:59+00:00

I have a project which uses a system to authorise users. While I make

  • 0

I have a project which uses a system to authorise users. While I make some updates I want to to be able to set IsAdmin(username) to always return true. I wont forget to remove this, however it would be helpful if there was functionality in visual studio, like the //TODO, which created a warning or on build or publishing. Does anyone know of any functionality like this?

Thanks

  • 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-17T02:24:00+00:00Added an answer on May 17, 2026 at 2:24 am

    Your C# and VB (and C++ in VS 2010) project files are MsBuild files and are built using the MsBuild engine. You could edit your project file in a text editor and add a warning that is conditional on a property being set.

    <!-- These two targets exist at the bottom of all .csproj/.vbproj files, 
         but are usually empty. -->
    <Target Name="BeforeBuild">
      <Warning
        Text="This is a debug build!."
        Condition="'$(Configuration)' == 'Debug'" />
    </Target>
    <Target Name="AfterBuild">
    </Target>
    

    You could also make it an error which stops the build using the Error task.

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

Sidebar

Related Questions

I have a Setup Project which uses a System.Configuration.Install.Installer Class forhandling some custom actions.
I have a maintenance project which uses Authorize.Net for payment. Currently, the system provides
I have inherited a visual studio 2003 project which uses some custom build steps.
I have downloaded a project which uses sbt as its build system and I
I have a project which uses groovy 1.7.5 and grails 1.3.4. but my new
I have a project which uses php's mt_rand() to generate different random integers but
I have a project which uses a large library residing in its own repository.
I have a C# project A which uses a .net wrapper DLL and a
I have a maven project A which uses jar files of another project B
I have a Visual Studio project which uses nmake to call a Python file

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.