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
For .NET Core 3.0, we expect to separate targeting packs, which contain the assets needed at build time when targeting .NET Core 3.0 (for example, reference assemblies and intellisense documentation) from "runtime packs", which will include the platform-specific runtime components for .NET Core 3.
This issue tracks the work required in order to support targeting packs. This may include:
Figure out what the layout of targeting packs will be
Create the targeting packs for each supported shared framework (as NuGet packages and msi, apt-get, etc installation packages)
Location and permission configuration. This may be important for build scripts that may not have superuser / elevated permissions and would need to use a custom folder (dotnet targeting-pack install net472 -o ./targeting-packs; dotnet build foo/foo.csproj --targeting-packs ./targeting-pakcs)
More design details will follow, but at a very high level we are looking at having the experience be that if you do not have the targeting pack globally installed / bundled with SDK, then nuget restore would pull it down to nuget cache via NuGet/Home#7339
Hello,
I hop I am not mess up this topic but I do not find any reference for targeting-pack commands...
dotnet targeting-pack install net472
This does not work to me.
My Dockerfile:
FROM mcr.microsoft.com/dotnet/core/sdk:3.0
WORKDIR /installer
# Targeting pack install
RUN wget -c https://download.visualstudio.microsoft.com/download/pr/cb26477c-ca65-4fa7-86cc-de0131303875/b844b61ec6ddab5d82dabc6c5efd419b/dotnet-targeting-pack-3.0.0-preview8-28405-07-x64.deb
RUN wget -c https://download.visualstudio.microsoft.com/download/pr/90cf071f-8412-45b1-9237-ade8d9d5b871/adcdf7d67cb0554f6a53af3d3b303e9d/aspnetcore-targeting-pack-3.0.0-preview8.19405.7.deb
RUN dpkg -i dotnet-targeting-pack-3.0.0-preview8-28405-07-x64.deb
RUN dpkg -i aspnetcore-targeting-pack-3.0.0-preview8.19405.7.deb
WORKDIR /usr/src
When i run the above command i got the following message:
root@4aa0901c2878:/usr/src# dotnet targeting-pack install net471
Specify which project file to use because this '/usr/src' contains more than one project file.
I have tried to point a specific .csproj file with no luck. :(
Can anybody help me with this?
Or can anybody explain me how to build (for run stylecop really) a multiple .csproj project in a CI pipeline?
Activity
dasMulli commentedon Sep 17, 2018
🙏
dotnet targeting-pack install net472❤️dasMulli commentedon Sep 17, 2018
Same as for https://github.com/dotnet/cli/issues/10007, please consider:
dotnet targeting-pack install net472 -o ./targeting-packs; dotnet build foo/foo.csproj --targeting-packs ./targeting-pakcs)nguerrera commentedon Oct 2, 2018
More design details will follow, but at a very high level we are looking at having the experience be that if you do not have the targeting pack globally installed / bundled with SDK, then nuget restore would pull it down to nuget cache via NuGet/Home#7339
dasMulli commentedon Nov 29, 2018
Ideally, this shouldn't break usages of
when using
PreserveCompilationContext=trueIt should only need an update to the dependency model NuGet package.
pozitron01 commentedon Nov 19, 2019
Hello,
I hop I am not mess up this topic but I do not find any reference for targeting-pack commands...
This does not work to me.
My Dockerfile:
When i run the above command i got the following message:
I have tried to point a specific .csproj file with no luck. :(
Can anybody help me with this?
Or can anybody explain me how to build (for run stylecop really) a multiple .csproj project in a CI pipeline?
Thank you