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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:26:39+00:00 2026-05-17T20:26:39+00:00

I’m working on an open source project (Logbus-ng), and I need to implement a

  • 0

I’m working on an open source project (Logbus-ng), and I need to implement a web service spawned by a console application in a way that works both on Windows and Mono.

Currently, thanks to the tutorial by MSDN Magazine, I succeeded in doing this on Windows. A console application can spawn its own web server and actually open a web service interface to the external. The problem is that this doesn’t work in Mono, reasonably because of a Mono bug.

Chatting with Mono developers, they suggested me to use the Mono.XSP assembly to enable the ASP.NET pipeline into console applications, so I think I’ll use different implementations of the web service activator depending on the configuration.

Now my question is: since Mono.XSP is available in GAC in all Mono distributions (ie. when using xbuild under Linux) but is not available in Windows unless someone installs it into the GAC, and I don’t want to ship Mono.XSP with my software, neither force someone to install Mono if they don’t need it (ie. if compiling under Windows), can I set a reference to Mono.XSP assembly in GAC that is enabled only if the MONO compilation flag is enabled? When this flag is enabled, my code will obviously be referencing Mono.XSP instead of HttpListenLibrary covered in the tutorial linked above, and the reference will be used by the compiler correctly.

Thank you in advance.

  • 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-17T20:26:39+00:00Added an answer on May 17, 2026 at 8:26 pm

    Use an MSBuild condition.

    For example, suppose your project has a configuration called “DebugMono”, which is the Mono version of the usual “Debug” configuration, simply place a condition attribute on the appropriate reference item element that checks the “Configuration” property value:

    <Reference Include="Mono.Xsp" Condition="'$(Configuration)'=='DebugMono'" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.