We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using File: references (in paket.references) with .NET Core projects, no file links are added to the .csproj file.
paket.references
Given the following .Net Core .csproj file:
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net461</TargetFramework> <IsPackable>false</IsPackable> </PropertyGroup> <Import Project="..\..\.paket\Paket.Restore.targets"/> </Project>
paket.dependencies:
source https://api.nuget.org/v3/index.json github MiniProfiler/dotnet:v3 StackExchange.Profiling/Data/ExecuteType.cs github MiniProfiler/dotnet:v3 StackExchange.Profiling/Data/IDbProfiler.cs
and paket.references:
File:ExecuteType.cs File:IDbProfiler.cs
When running
paket install
no link is made to the IDbProfile.cs file in the project file.
...> dotnet --info .NET Command Line Tools (2.0.0) Product Information: Version: 2.0.0 Commit SHA-1 hash: cdcd1928c9 Runtime Environment: OS Name: Windows OS Version: 10.0.15063 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.0.0\ Microsoft .NET Core Shared Framework Host Version : 2.0.0 Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d ...> .paket\paket.exe --version Paket version 5.85.3
I would expect the .csproj file to contain a link to the file:
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net461</TargetFramework> <IsPackable>false</IsPackable> </PropertyGroup> <ItemGroup> <Compile Include="..\..\paket-files\MiniProfiler\dotnet\StackExchange.Profiling\Data\ExecuteType.cs"> <Paket>True</Paket> <Link>paket-files/ExecuteType.cs</Link> </Compile> <Compile Include="..\..\paket-files\MiniProfiler\dotnet\StackExchange.Profiling\Data\IDbProfiler.cs"> <Paket>True</Paket> <Link>IDbProfiler.cs</Link> </Compile> </ItemGroup> <Import Project="..\.paket\Paket.Restore.targets"/> </Project>
The .csproj file does not contain any file links.
You need to manually add any file links to the .csproj file.
The text was updated successfully, but these errors were encountered:
Yes this part is not yet implemented for sdk projects. Thank you for sending a repro
Sorry, something went wrong.
ok the issue is simpler. there is not ItemGroup in the file so it doesn't know where to insert
4aa2db1
fixed in latest alpha
No file links were created when using File: references in .NET Core p…
7020fc8
…rojects - fixes #2622 # Conflicts: # RELEASE_NOTES.md
No branches or pull requests
Description
When using File: references (in
paket.references
) with .NET Core projects, no file links are added to the .csproj file.Repro steps
Given the following .Net Core .csproj file:
paket.dependencies:
and paket.references:
When running
no link is made to the IDbProfile.cs file in the project file.
Expected behavior
I would expect the .csproj file to contain a link to the file:
Actual behavior
The .csproj file does not contain any file links.
Known workarounds
You need to manually add any file links to the .csproj file.
The text was updated successfully, but these errors were encountered: