1

Sitecore Visual Studio Project

The package reference 'SVS.Build' should not specify a version. Please specify the version in 'xxx\Packages.props' or set VersionOverride to override the centrally defined version.

I have already added to nuget.config

<add key='SVSComponents' value='https://sitecore.myget.org/F/sc-developer-collection/api/v3/index.json'/>

how to resolve ????????

enter image description here

3 Answers 3

1

I had to Right click on the Sitecore Visual Studio Project, Manage Nuget Packages and add SVS Build ...

ONLY THEN DID IT ACTUALLY ADD THE package.config !!!

enter image description here

enter image description here

1

Try this:

  1. unload your Myproject.build

  2. remove the version from you SVS.Build reference

    <PackageReference Include="SVS.Build"> </PackageReference>

  3. Add the following version update to your Packages.props:

    <PackageReference Update="SVS.Build" Version="1.0.0.10"/>

0

Replacing a version with a versoinOverride cleared the error for me:

Orignal:

  <ItemGroup>
    <PackageReference Include="SVS.Build">
       <Version>5.2.113.2</Version>
    </PackageReference>
  </ItemGroup>

Fixed:

  <ItemGroup>
    <PackageReference Include="SVS.Build" VersionOverride="5.2.113.2" />
  </ItemGroup>

See https://learn.microsoft.com/en-us/nuget/consume-packages/Central-Package-Management#overriding-package-versions

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.