msbuild


MSBuild 15 don't copy to relative output path libraries that not included in “reference” block of NuGet package


I have a problem with MSBuild 15 and copying to output path libraries that not included in "reference" block of NuGet package.
<metadata>
<references>
<reference file="ReferencedDLL.dll" />
</references>
</metadata>
<files>
<file src="bin\ReferencedDLL.dll" target="lib\net461" />
<!-- These ones -->
<file src="bin\SomeOtherDLLs*.dll" target="lib\net461" />
</files>
If OutputPath is relative then SomeOtherDLLs*.dll are not copied to output (ex. bin/debug). If OutputPath is absolute thats all right.
This problem appeared when I migrate my NuGet references to new <PackageReference> spec. Of course I can put $(MSBuildThisFileDirectory) in <OutputPath> property at project file
<OutputPath>$(MSBuildThisFileDirectory)\bin\$(Configuration)\</OutputPath>
or use build/*.target in package. But I can't understand why is the behavior different and these problems manifests only when using relative paths?

Related Links

Building Windows 10 Mobile app using Visual Studio Team Services
msbuild in CI server
How to override ApplicationVersion for Publish target in MSBuild
Failed to execute Task error with msbuild step
Building Xamarin Android on TFS - how to download Nuget packages
Incremental MS Build
Teamcity display error message instead exit code
MSBuild target Get List of newer or older files
Rider Error:CS0041: Unexpected error writing debug information — 'The method or operation is not implemented.'
Include additional files in build using MSBuild
Error integration SonarQube Msbuild runner with TeamCity
MSBuild shared .targets file
How to use MSBuild transform when ItemGroup files all have identical names?
Team Services build windows service to the deploy folder
MSBuild ResolveAssemblyReference task is very slow after loading Visual Studio
How do I get the the expected output from a TFS 2015 build (to match my XAML build)?

Categories

HOME
kendo-ui-angular2
swift3
azure-documentdb
macros
microcontroller
windows-server-2008
magento-1.9.2.1
watson-iot
symfony-sonata
sdk
mediarecorder
liquidsoap
jquery-select2
promotions
yacc
facebook-sharer
osclass
ldap-query
decoding
watson-dialog
tmux
yui
vivado-hls
airbnb
project-reactor
restructuredtext
polybase
coccinelle
google-drive-android-api
edsdk
drawrect
imdb
certbot
lighting
realloc
stdin
instances
gem-fury
linkurious
usernotifications
icu
socketcluster
glide-image-library
directadmin
definition
irr
result
api-key
amazon-fire-tv
ionic2-select
riemann
playframework-1.x
androiddesignsupport
timefield
toggleclass
hdr
scriptengine
airwatch
nd4j
innertext
music-player
nonblocking
first-order-logic
bootstrap-tabs
nmock
p4python
tidesdk
avd
copy-on-write
maven-archetype
veeam
nexusdb
chunks
esri-arc-engine
caption
gnip
agent-based-modeling
selenium-grid2
yandex-api
sigma-grid-control
rssi
infor-eam
db2-connect
node-amqp
xtify
facebook-likebox
ekevent
misfire-instruction
8-puzzle
dynamic-expresso
symbian3
spawn
architectural-patterns
string-length
vline
gssapi
inflate
m3u
hypertable
diazo
stl-algorithm
jqzoom
discussion-board
designated-initializer
cryptolicensing
chars
jquery-attributes
atmega16
qlibrary
bootstrap-protocol

Resources

Encrypt Message