microsoft / Dynamics365Commerce.Solutions

Repository for hosting the Dynamics 365 Commerce end to end sample solutions
Other
58 stars 26 forks source link

StoreCommerce sample project fails to build for 9.47 #214

Closed rphillipsnwt closed 12 months ago

rphillipsnwt commented 1 year ago

Build Issue

Commerce SDK Sample Issue

Summary

Today my 9.47 StoreCommerce project, specifically the installer sub-project, started throwing an error during build. I switched over to the StoreCommerce sample project and received the same error during build. This error did not occur yesterday.

Version and Error Info

Commerce SDK Version: 9.47

Visual Studio/Visual Studio Code/MSBuild Version: Visual Studio Version: 16.11.26 / MSBuild Version: 16.11.2.50704

Does this happen every time the solution is built: Yes

Name of Project with Error: StoreCommerce.Installer

MSBuild Error:

>C:\...\src\PackagingSamples\StoreCommerceApp\StoreCommerce.Installer\obj\Debug\net472\NuGet\A475414C3F7139320316876D3077ADF4A5DB0DEE\Microsoft.Dynamics.Commerce.Sdk.Installers.StoreCommerce\9.47.23312.7\Setup.cs(30,89,30,124): error CS0103: The name 'StoreCommerceExtensionInstallAction' does not exist in the current context
>C:\...\src\PackagingSamples\StoreCommerceApp\StoreCommerce.Installer\obj\Debug\net472\NuGet\A475414C3F7139320316876D3077ADF4A5DB0DEE\Microsoft.Dynamics.Commerce.Sdk.Installers.StoreCommerce\9.47.23312.7\Setup.cs(72,24,72,59): error CS0246: The type or namespace name 'StoreCommerceExtensionInstallAction' could not be found (are you missing a using directive or an assembly reference?)

Reproducing the Issue

  1. Clone the InStore sample and switch to the release/9.47 branch
  2. Load the StoreCommerce sample solution into VisualStudio
  3. Build
  4. See error
Daniel-Guenter commented 1 year ago

Yes that is happening for us now too. The issue is somewhere between version 9.47.23312.4 and 9.47.23312.7

muniyaraj03 commented 1 year ago

Yes that is happening suddenly now for us. it was working till yesterday. Any update on this issue.

Ahmedbreaka commented 12 months ago

yes this happened to us now when upgraded to release/9.47 branch

cpfordham commented 12 months ago

Has MS started looking into this issue? This is significant for our deployment.

Vekto commented 12 months ago

Still exists in 9.47.23313.4. we have gotten around this by locking our projects to an earlier version for the time being.

<ItemGroup>
    <PackageReference Include="Microsoft.Dynamics.Commerce.Sdk.Installers.StoreCommerce" Version="[9.47.23312.4]" />
</ItemGroup>
madyke commented 12 months ago

Hi folks, we have opened an internal bug and are actively investigating. In the meantime, you can unblock yourselves by locking the project reference to a working build, as @Vekto has shown above.

madyke commented 12 months ago

Hello everyone, we have identified the issue and are working on a fix

MHaseebAnjum commented 12 months ago

Hi, Did someone get the fix of this issue?

madyke commented 12 months ago

Hi everyone,

This has been fixed, and the new builds have just been released. The issue is resolved on these builds and later:

Thanks everyone for reporting the issue, we're working on adding a new test suite to the Samples repo so these issues will be detected and prevented in the future.

rphillipsnwt commented 12 months ago

Thanks @madyke!