Giter Site home page Giter Site logo

Comments (4)

raandree avatar raandree commented on September 21, 2024

I have tested the build on a newly created Windows Server 2019 machine in Azure and all worked fine.

After the successful build, for example the AuditPolicies DSC Configuration existed:

$dscResources = Get-DscResource -Module CommonTasks
$dscResources.Name -contains 'AuditPolicies' #returned true

The integration tests for this particular resource looked fine and I do have a file names localhost_AuditPolicies.mof in the output folder:

Describing 'AuditPolicies' DSC Resource compiles
    [+] 'AuditPolicies' compiles 19.09s
    [+] 'AuditPolicies' should have created a mof file 3ms

Do you have the DSC Resource module AuditPolicyDsc somewhere in the PSModulePath additionally to output\RequiredModules?

from commontasks.

gaelcolas avatar gaelcolas commented on September 21, 2024

One way to troubleshoot this is to create a short Config script that uses the missing resource and let it throw all its errors.
As Raimund pointed out, this issue is usually an issue with some PSModulePath.
Probably worth checking the version of Sampler in use, as if an old version is already loaded/available, it may not bootstrap to a version "new enough".

from commontasks.

stehlih avatar stehlih commented on September 21, 2024

I have checked my PSModulePath and in my private module path I found installed versions of AuditPolicyDsc and SecurityPolicyDsc. But here are the same versions installed as downloaded by PSDepend from the CommonTasks build.

The reason of the problem are different versions of nuget.exe. The existing versions of AuditPolicyDsc and SecurityPolicyDsc in my private module path were downloaded with NuGet 5.7.0 in February 2021. Now PSDepend downloads a new NuGet 6.0.0. The generated PSGetModuleInfo.xml for each module has a different structure and this is the cause of the error.

from commontasks.

raandree avatar raandree commented on September 21, 2024

Thanks @stehlih, as expected. Maybe when compiling the MOFs we can save, change for the compile time and restore the PSModulePath to prevent these conflicts in the future.

from commontasks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.