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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:47:04+00:00 2026-06-02T10:47:04+00:00

Is it possible to Deploy PostSharp into a Source Repository in conjunction with NuGet

  • 0

Is it possible to Deploy PostSharp into a Source Repository in conjunction with NuGet Package Restore?
I can get this working by committing the postsharp package, but that negates somewhat the value of the Package Restore feature.

Here’s what I did.

  • I was trying to set up postshap like so: Deploying post sharp into a source repo

  • I have set up nugget to use without commiting like so: Using NuGet Without Committing Packages to Source Control

I see this in my csproj

<Import Project="..\packages\PostSharp.2.1.6.13\tools\PostSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />

(I re-ordered them to no avail)

And my build server (CC.net) reports the following errors:

D:\wwwroot\www.snip.co.nz\http\www.snip.co.nz.csproj (714,3):

errorMSB4019: The imported project     "D:\wwwroot\www.snip.co.nz\packages\PostSharp.2.1.6.13\tools\PostSharp.targets" was not found. Confirm that the path in the &lt;Import&gt; declaration is correct, and that the file exists on disk.

CacheAttribute.cs (8,7):
errorCS0246: The type or namespace name 'PostSharp' could not be found (are you missing a using directive or an assembly reference?) 
…etc…
  • 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-02T10:47:07+00:00Added an answer on June 2, 2026 at 10:47 am

    You currently (v2.1.6.13) have to fix the csproj to support Package Restore,
    within the Import target element add the condition shown here:

    <Import Project="..\packages\PostSharp.2.1.6.13\tools\PostSharp.targets"  
         Condition="Exists('..\packages\PostSharp.2.1.6.13\tools\PostSharp.targets')" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to deploy python applications such that you don't release the source
I'm trying to learn and figure out if it is possible to deploy an
I want to build projects from the command line. Is it possible to deploy
Would it be possible to build and deploy Meteor applications on Google App Engine
Possible Duplicates: Why is lock(this) {...} bad? In C# it is common to use
Is it possible to deploy an Android application to the google app engine environment?
I would like to know if its possible to deploy java class files without
Hello Guys I simply want to ask that is it possible to deploy Silverlight
Is it possible to deploy multiple roles in the same instance? I have three
Is it possible to deploy a custom field type in Sharepoint Online. I know

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.