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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:00:39+00:00 2026-06-11T23:00:39+00:00

I know that a software engineer usually isn’t screaming, hey all I’m not getting

  • 0

I know that a software engineer usually isn’t screaming, hey all I’m not getting an error, can you help me get one! But currently I need this error to show up locally because it’s failing on our CI build. It’s much harder to suppress (and please trust me I just need to suppress it because it’s generated code from a WF workflow) when I’m not getting the error locally because the syntax for the member name is at best, painful.

The build server’s CI build uses the Release configuration, and I’m building locally in Release, so ideally I’d be getting the same errors (an generally do).

Here is a snapshot of my Release section in my project file:

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  <DebugType>pdbonly</DebugType>
  <Optimize>true</Optimize>
  <OutputPath>bin\</OutputPath>
  <DefineConstants>TRACE</DefineConstants>
  <ErrorReport>prompt</ErrorReport>
  <WarningLevel>4</WarningLevel>
  <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
  <RunCodeAnalysis>true</RunCodeAnalysis>
  <CodeAnalysisRuleSet>..\..\SolutionAnalysis.ruleset</CodeAnalysisRuleSet>
  <StyleCopEnabled>true</StyleCopEnabled>
  <StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
  <NoWarn>1591</NoWarn>
</PropertyGroup>

And on the build server I’m getting this error (type and path names removed for security):

obj\Release\WorkflowName_BeforeInitializeComponentHelper.cs (18): CA1822 : Microsoft.Performance : The ‘this’ parameter (or ‘Me’ in Visual Basic) of ‘WorkflowName.BeforeInitializeComponent(ref bool)’ is never used. Mark the member as static (or Shared in Visual Basic) or use ‘this’/’Me’ in the method body or at least one property accessor, if appropriate.

I hope that y’all can help me figure out why Visual Studio isn’t surfacing the error during a Release build locally … oh the INSANITY!

  • 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-11T23:00:40+00:00Added an answer on June 11, 2026 at 11:00 pm

    Okay, so I’m getting this error locally now by upgrading my local version of StyleCop. I’m not sure why that has any bearing on code analysis but honestly all of these tools just don’t play well together because we’ve also got ReSharper installed organization wide and it causes a lot of grief.

    So, that being said, the way I ended up solving this anyway was to build partial classes for each WF Activity, i.e. XAML files**, that look something like this:

    // ReSharper disable CheckNamespace
    namespace {namespace}
    // ReSharper restore CheckNamespace
    {
        using System.CodeDom.Compiler;
    
        /// <summary>
        /// Sets up the [GeneratedCode] attribute for the generated workflow class so that code analysis isn't performed.
        /// </summary>
        [GeneratedCode("", "1.0")]
        public partial class {classname}
        {
        }
    }
    

    You can gather the {namespace} and {classname} from the x:Class attribute in the XAML that makes up the WF Activity (right-click on the XAML file and select “View Code”).

    ** You don’t need them for WF Services, i.e. XAMLX files

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

Sidebar

Related Questions

Is there a good tool that can help to reverse engineer Java classes to
My 9-5 job is as a software engineer so this usually isn't a problem
i know that autohotkey is opensource software. but i need 'autohotkeysc.bin' 's source code
I am developing a software with vb6.0 :( . I wanna to know that
Does anyone know of a bug tracking piece of software that has community based
I know that I can hijack a form by showing a login form in
We have several software packages (SolidWorks, Pro/ENGINEER, OrCAD, Minitab... ) that use FlexLM to
I know that there are no fixed rules about software version control but I
Can I expect users to be able to run software that uses OpenGL 3.x?
First a little about myself. I am not an experienced software engineer, architect or

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.