/*
  * Warning MSB3644: The reference assemblies for framework
  * ".NETFramework,Version=v4.0,Profile=Client" were not found. To resolve this,
  * install the SDK or Targeting Pack for this framework version or retarget
  * your application to a version of the framework for which you have the SDK
  * or Targeting Pack installed. Note that assemblies will be resolved from
  * the Global Assembly Cache (GAC) and will be used in place of reference assemblies.
  * Therefore your assembly may not be correctly targeted for the framework you intend.
  */
 public IMSBuildChainedLoggerFilter CreateFilter(IMSBuildLoggerContext context, IMSBuildChainedLoggerFilter nextFilter)
 {
     if (context.Project.MinimumSolutionVersion >= SolutionFormatVersion.VS2010) {
         return new TargetingPackWarningWorkaroundChainEntry(nextFilter);
     } else {
         return nextFilter;
     }
 }
Exemplo n.º 2
0
			public IMSBuildChainedLoggerFilter CreateFilter(IMSBuildLoggerContext context, IMSBuildChainedLoggerFilter nextFilter)
			{
				if (nextFilter == null)
					throw new ArgumentNullException("nextFilter");
				// ensure the engine gets notified about start/end of this task
				context.InterestingTasks.Add(taskname);
				// Create a Filter that tracks whether the task is active.
				// If active, forward to 'baseFilter', otherwise forward to 'nextFilter'.
				return new TaskBoundLoggerFilter(this, context, nextFilter);
			}
        /*
         * Warning MSB3644: The reference assemblies for framework
         * ".NETFramework,Version=v4.0,Profile=Client" were not found. To resolve this,
         * install the SDK or Targeting Pack for this framework version or retarget
         * your application to a version of the framework for which you have the SDK
         * or Targeting Pack installed. Note that assemblies will be resolved from
         * the Global Assembly Cache (GAC) and will be used in place of reference assemblies.
         * Therefore your assembly may not be correctly targeted for the framework you intend.
         */

        public IMSBuildChainedLoggerFilter CreateFilter(IMSBuildLoggerContext context, IMSBuildChainedLoggerFilter nextFilter)
        {
            if (context.Project.MinimumSolutionVersion >= SolutionFormatVersion.VS2010)
            {
                return(new TargetingPackWarningWorkaroundChainEntry(nextFilter));
            }
            else
            {
                return(nextFilter);
            }
        }
 public IMSBuildChainedLoggerFilter CreateFilter(IMSBuildLoggerContext context, IMSBuildChainedLoggerFilter nextFilter)
 {
     if (nextFilter == null)
     {
         throw new ArgumentNullException("nextFilter");
     }
     // ensure the engine gets notified about start/end of this task
     context.InterestingTasks.Add(taskname);
     // Create a Filter that tracks whether the task is active.
     // If active, forward to 'baseFilter', otherwise forward to 'nextFilter'.
     return(new TaskBoundLoggerFilter(this, context, nextFilter));
 }
			public TaskBoundAdditionalLogger(TaskBoundAdditionalLoggerDescriptor desc, IMSBuildLoggerContext context)
			{
				this.desc = desc;
				this.context = context;
			}
			public ILogger CreateLogger(IMSBuildLoggerContext context)
			{
				context.InterestingTasks.Add(taskname);
				return new TaskBoundAdditionalLogger(this, context);
			}
Exemplo n.º 7
0
			public FxCopLoggerImpl(IMSBuildLoggerContext context, IMSBuildChainedLoggerFilter nextChainElement)
			{
				this.context = context;
				this.nextChainElement = nextChainElement;
			}
Exemplo n.º 8
0
		public IMSBuildChainedLoggerFilter CreateFilter(IMSBuildLoggerContext context, IMSBuildChainedLoggerFilter nextFilter)
		{
			context.OutputTextLine(StringParser.Parse("${res:ICSharpCode.CodeAnalysis.RunningFxCopOn} " + context.ProjectFileName.GetFileNameWithoutExtension()));
			return new FxCopLoggerImpl(context, nextFilter);
		}
 public TaskBoundLoggerFilter(TaskBoundLoggerFilterDescriptor desc, IMSBuildLoggerContext context, IMSBuildChainedLoggerFilter nextFilter)
 {
     this.desc = desc;
     this.context = context;
     this.nextFilter = nextFilter;
 }
Exemplo n.º 10
0
 public TaskBoundLoggerFilter(TaskBoundLoggerFilterDescriptor desc, IMSBuildLoggerContext context, IMSBuildChainedLoggerFilter nextFilter)
 {
     this.desc       = desc;
     this.context    = context;
     this.nextFilter = nextFilter;
 }
 public TaskBoundAdditionalLogger(TaskBoundAdditionalLoggerDescriptor desc, IMSBuildLoggerContext context)
 {
     this.desc    = desc;
     this.context = context;
 }
 public ILogger CreateLogger(IMSBuildLoggerContext context)
 {
     context.InterestingTasks.Add(taskname);
     return(new TaskBoundAdditionalLogger(this, context));
 }
Exemplo n.º 13
0
 public FxCopLoggerImpl(IMSBuildLoggerContext context, IMSBuildChainedLoggerFilter nextChainElement)
 {
     this.context          = context;
     this.nextChainElement = nextChainElement;
 }
Exemplo n.º 14
0
 public IMSBuildChainedLoggerFilter CreateFilter(IMSBuildLoggerContext context, IMSBuildChainedLoggerFilter nextFilter)
 {
     context.OutputTextLine(StringParser.Parse("${res:ICSharpCode.CodeAnalysis.RunningFxCopOn} " + context.ProjectFileName.GetFileNameWithoutExtension()));
     return(new FxCopLoggerImpl(context, nextFilter));
 }