You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am learning the SBOM and I am trying to generate SBOM file by this tool, but when I 'docker build . -t ms_sbom_tool' the following error occurs:
Sending build context to Docker daemon 4.442MB
Step 1/12 : FROM mcr.microsoft.com/dotnet/sdk AS build-env
---> c607979be6d9
Step 2/12 : COPY . /app
---> 0fd7348db5d2
Step 3/12 : WORKDIR /app/src/Microsoft.Sbom.Tool
---> Running in 4afbf35065d3
Removing intermediate container 4afbf35065d3
---> 075dc133b6f0
Step 4/12 : ARG RUNTIME=linux-x64
---> Running in 3279f8071f5b
Removing intermediate container 3279f8071f5b
---> 1efe06ad5670
Step 5/12 : RUN dotnet publish -r $RUNTIME --self-contained true -p:DebugType=None -p:DebugSymbols=false -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -o output
---> Running in d033344bab27
MSBuild version 17.8.3+195e7f5a3 for .NET
Determining projects to restore...
Restored /app/src/Microsoft.Sbom.Extensions/Microsoft.Sbom.Extensions.csproj (in 1.89 min). Restored /app/src/Microsoft.Sbom.Adapters/Microsoft.Sbom.Adapters.csproj (in 1.89 min).
Restored /app/src/Microsoft.Sbom.Contracts/Microsoft.Sbom.Contracts.csproj (in 1.89 min).
Restored /app/src/Microsoft.Sbom.Parsers.Spdx22SbomParser/Microsoft.Sbom.Parsers.Spdx22SbomParser.csproj (in 1.89 min).
Restored /app/src/Microsoft.Sbom.Common/Microsoft.Sbom.Common.csproj (in 1.89 min).
Restored /app/src/Microsoft.Sbom.Api/Microsoft.Sbom.Api.csproj (in 1.94 min).
Restored /app/src/Microsoft.Sbom.Extensions.DependencyInjection/Microsoft.Sbom.Extensions.DependencyInjection.csproj (in 1.94 min).
Restored /app/src/Microsoft.Sbom.Tool/Microsoft.Sbom.Tool.csproj (in 2.46 min).
/usr/share/dotnet/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.CrossTargeting.targets(31,5): error NETSDK1129: The 'Publish' target is not supported without specifying a
target framework. The current project targets multiple frameworks, you must specify one of the following frameworks in order to publish: net6.0, net8.0 [/app/src/Microsoft.Sbom.Tool/Microsoft.Sbom.Tool.csproj]
The command'/bin/sh -c dotnet publish -r $RUNTIME --self-contained true -p:DebugType=None -p:DebugSymbols=false -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -o output' returned a non-zero code: 1
How can I specify a framework? BTW: I followed: Building SBOM tool as docker image.
The text was updated successfully, but these errors were encountered:
Hello, I am learning the SBOM and I am trying to generate SBOM file by this tool, but when I 'docker build . -t ms_sbom_tool' the following error occurs:
How can I specify a framework? BTW: I followed:
Building SBOM tool as docker image
.The text was updated successfully, but these errors were encountered: