Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Issue “stylecop.json could not be found” in new Automation Script template

Solved281 views7th April 2025Automation script interactive automation script
3
Enis Abaza [SLC] [DevOps Advocate]188 4th April 2025 2 Comments

Hi everyone,

I've run into a bit of a challenge with the stylecop.json file in the new automation script template. When I create a fresh "Data Miner Automation Script Project," I encounter this error right away:

Source file 'C:\Users\EnisAB\source\repos\OrangeOceaneTicketingSystem\..\Internal\Code Analysis\stylecop.json' could not be found.

Here is my view from the solution explorer, where you can see the location of the "stylecop.json" file: 

The part of the error that I bolded out ("..\") clearly causes the issue. So in the "Directory.Build.props" file I removed the "..\" that is causing the issue:
<Additional Files Include="..\Internal\Code Analysis\stylecop.json">
<Link>Properties\stylecop.json</Link>
</AdditionalFiles>

To this:

<Additional Files Include="Internal Code Analysis\stylecop.json">
<Link>Properties\stylecop.json</Link>
</AdditionalFiles>

This works for now, but the fix doesn't stick, because whenever I restart my PC or close Visual Studio, the Directory.Build.props file gets regenerated, and my StyleCop rules disappear. I'm using DIS version 3.1.7.
I'm wondering if I might be missing something here. Is this a known issue with the new automation script template, or could it be a bug? Has anyone found a permanent workaround for this?

Enis Abaza [SLC] [DevOps Advocate] Selected answer as best 7th April 2025
Edib Šupić [SLC] [DevOps Catalyst] commented 7th April 2025

Hi Enis,

Can you try reinstalling the DIS extension and when you do install the latest version 3.1.8?

Cheers

Enis Abaza [SLC] [DevOps Advocate] commented 7th April 2025

Hi Edib,

I reinstalled the DIS extension (version 3.1.8) as you suggested, but unfortunately, the error still persists.

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Michiel Oda [SLC] [DevOps Enabler]3.61K Posted 7th April 2025 2 Comments

Hi Enis

When creating a new solution, you see the checkbox for 'Place solution and project in the same directory'. This needs to be unchecked for DIS to work properly with the new templates. Unfortunately this is currently not possible to disable with the project templates.

Enis Abaza [SLC] [DevOps Advocate] Selected answer as best 7th April 2025
Michiel Oda [SLC] [DevOps Enabler] commented 7th April 2025

The easiest to fix your scenario is to remove the solution and recreate it with the checkbox off.

Enis Abaza [SLC] [DevOps Advocate] commented 7th April 2025

Thank you Michiel for your response, it works when I uncheck the mentioned checkbox.

You are viewing 1 out of 1 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin