Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CS1061 Error in Azure DevOps Pipeline but Not Locally #527

Open
manish-karn opened this issue Mar 14, 2025 · 0 comments
Open

CS1061 Error in Azure DevOps Pipeline but Not Locally #527

manish-karn opened this issue Mar 14, 2025 · 0 comments

Comments

@manish-karn
Copy link

manish-karn commented Mar 14, 2025

Description

When running the Azure DevOps pipeline, the build fails with the following error:

However, the code compiles and runs successfully in my local Visual Studio environment.

Steps to Reproduce

  1. Run the build pipeline in Azure DevOps.
  2. Observe that the build fails with CS1061.
  3. Run the same code in Visual Studio locally.
  4. Observe that the build succeeds without errors.

Expected Behavior

The pipeline should build successfully, just as it does locally.

Actual Behavior

The build agent in Azure DevOps fails with CS1061, indicating that State.Test is not found.

Workaround

Currently, I am using the following workaround:

await Mediatr.Send(new State.StaticClass.Action(object));
@manish-karn manish-karn changed the title Code generator doesn;t work in pipeline CS1061 Error in Azure DevOps Pipeline but Not Locally Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant