dotnet build not including .dep files in build output
See original GitHub issueWe are using a nuget package which has it dependencies bundled up as a .dep file, when we run dotnet build, the .dep file is not included in out outputted bin file. (This used to work with dnx)
Steps to reproduce
Create a new netcore project (class library will be fine) set framework to net4xx as this library doesn’t have an option for core yet
SAMPLE Project.json
{ "version": "1.0.0-*", "dependencies": { "hiqpdf.free": "9.21.0" }, "frameworks": { "net461":{} } }
once package restore has completed, run dotnet build
Expected behavior
Expected the packages .dep file to be in the bin
Actual behavior
.dep file is not included in bin
I have also tried to force it using:
"buildOptions": { "embed": "**/*.dep" }
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-preview2-003121)
Product Information: Version: 1.0.0-preview2-003121 Commit SHA-1 hash: 1e9d529bc5
Runtime Environment: OS Name: Windows OS Version: 10.0.10586 OS Platform: Windows RID: win10-x64
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
I know this topic is outdated but I would like to share my solution in order to help someone that was struggling with it.
The project that uses SDK-style need to declare the files to be copied to output folder (
bin
as default). So, here is the snippet. I set the boolean propertyGeneratePathProperty
to true and I made use of the variable$(Pkghiqpdf)
for finding the path baseline. This is composed by the prefixPkg
+package name
as it is inInclude
attribute (replace periods by underscores).Thanks, i will contact the package vendor