Visual Studio 2017 project output contains random unreferenced system DLL files [duplicate]











up vote
0
down vote

favorite













This question already has an answer here:




  • Why does my .NET Standard NuGet package trigger so many dependencies?

    2 answers




My references:




  • Monogame Framework

  • Monogame Extended (4 libraries)

  • Newtonsoft.Json

  • System

  • System.xml


When I compile, I get a folder filled with arbitrary system DLLs (for example: System.Security.Cryptography.X509Certificates.dll, System.Net.WebHeaderCollection.dll) in the debug/release folder.



I made a new blank project of the same template and added the exact same references, compiled, and got no random DLLs.



When I delete the unnecessary files, everything still works normally.
Also I tried deleting the 'obj' folder and recompiling but it still creates these files.










share|improve this question













marked as duplicate by Amy c#
Users with the  c# badge can single-handedly close c# questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 22 at 6:05


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.















  • Are you targeting .Net Standard?
    – Amy
    Nov 22 at 5:56






  • 1




    See: stackoverflow.com/questions/47365136/…
    – Amy
    Nov 22 at 5:58










  • @amy this is the appropriate duplicate i feel, nice find
    – TheGeneral
    Nov 22 at 6:01










  • That was it thanks. I was targeting 4.6.1 but I switched it to 4.7.2 and it solved the problem. Thanks!
    – Raflos
    Nov 22 at 6:03















up vote
0
down vote

favorite













This question already has an answer here:




  • Why does my .NET Standard NuGet package trigger so many dependencies?

    2 answers




My references:




  • Monogame Framework

  • Monogame Extended (4 libraries)

  • Newtonsoft.Json

  • System

  • System.xml


When I compile, I get a folder filled with arbitrary system DLLs (for example: System.Security.Cryptography.X509Certificates.dll, System.Net.WebHeaderCollection.dll) in the debug/release folder.



I made a new blank project of the same template and added the exact same references, compiled, and got no random DLLs.



When I delete the unnecessary files, everything still works normally.
Also I tried deleting the 'obj' folder and recompiling but it still creates these files.










share|improve this question













marked as duplicate by Amy c#
Users with the  c# badge can single-handedly close c# questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 22 at 6:05


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.















  • Are you targeting .Net Standard?
    – Amy
    Nov 22 at 5:56






  • 1




    See: stackoverflow.com/questions/47365136/…
    – Amy
    Nov 22 at 5:58










  • @amy this is the appropriate duplicate i feel, nice find
    – TheGeneral
    Nov 22 at 6:01










  • That was it thanks. I was targeting 4.6.1 but I switched it to 4.7.2 and it solved the problem. Thanks!
    – Raflos
    Nov 22 at 6:03













up vote
0
down vote

favorite









up vote
0
down vote

favorite












This question already has an answer here:




  • Why does my .NET Standard NuGet package trigger so many dependencies?

    2 answers




My references:




  • Monogame Framework

  • Monogame Extended (4 libraries)

  • Newtonsoft.Json

  • System

  • System.xml


When I compile, I get a folder filled with arbitrary system DLLs (for example: System.Security.Cryptography.X509Certificates.dll, System.Net.WebHeaderCollection.dll) in the debug/release folder.



I made a new blank project of the same template and added the exact same references, compiled, and got no random DLLs.



When I delete the unnecessary files, everything still works normally.
Also I tried deleting the 'obj' folder and recompiling but it still creates these files.










share|improve this question














This question already has an answer here:




  • Why does my .NET Standard NuGet package trigger so many dependencies?

    2 answers




My references:




  • Monogame Framework

  • Monogame Extended (4 libraries)

  • Newtonsoft.Json

  • System

  • System.xml


When I compile, I get a folder filled with arbitrary system DLLs (for example: System.Security.Cryptography.X509Certificates.dll, System.Net.WebHeaderCollection.dll) in the debug/release folder.



I made a new blank project of the same template and added the exact same references, compiled, and got no random DLLs.



When I delete the unnecessary files, everything still works normally.
Also I tried deleting the 'obj' folder and recompiling but it still creates these files.





This question already has an answer here:




  • Why does my .NET Standard NuGet package trigger so many dependencies?

    2 answers








c# monogame






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 22 at 5:39









Raflos

1




1




marked as duplicate by Amy c#
Users with the  c# badge can single-handedly close c# questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 22 at 6:05


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by Amy c#
Users with the  c# badge can single-handedly close c# questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 22 at 6:05


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • Are you targeting .Net Standard?
    – Amy
    Nov 22 at 5:56






  • 1




    See: stackoverflow.com/questions/47365136/…
    – Amy
    Nov 22 at 5:58










  • @amy this is the appropriate duplicate i feel, nice find
    – TheGeneral
    Nov 22 at 6:01










  • That was it thanks. I was targeting 4.6.1 but I switched it to 4.7.2 and it solved the problem. Thanks!
    – Raflos
    Nov 22 at 6:03


















  • Are you targeting .Net Standard?
    – Amy
    Nov 22 at 5:56






  • 1




    See: stackoverflow.com/questions/47365136/…
    – Amy
    Nov 22 at 5:58










  • @amy this is the appropriate duplicate i feel, nice find
    – TheGeneral
    Nov 22 at 6:01










  • That was it thanks. I was targeting 4.6.1 but I switched it to 4.7.2 and it solved the problem. Thanks!
    – Raflos
    Nov 22 at 6:03
















Are you targeting .Net Standard?
– Amy
Nov 22 at 5:56




Are you targeting .Net Standard?
– Amy
Nov 22 at 5:56




1




1




See: stackoverflow.com/questions/47365136/…
– Amy
Nov 22 at 5:58




See: stackoverflow.com/questions/47365136/…
– Amy
Nov 22 at 5:58












@amy this is the appropriate duplicate i feel, nice find
– TheGeneral
Nov 22 at 6:01




@amy this is the appropriate duplicate i feel, nice find
– TheGeneral
Nov 22 at 6:01












That was it thanks. I was targeting 4.6.1 but I switched it to 4.7.2 and it solved the problem. Thanks!
– Raflos
Nov 22 at 6:03




That was it thanks. I was targeting 4.6.1 but I switched it to 4.7.2 and it solved the problem. Thanks!
– Raflos
Nov 22 at 6:03












1 Answer
1






active

oldest

votes

















up vote
1
down vote













There are likely 2 causes.




  1. Make sure you don't have references to them.


  2. You are using dependencies that are using dependencies. This is what happens.



The solve




  1. Use a dependency walker, and find out who is referencing them

  2. and/or use resharper to identify dependencies that aren't needed and remove them






share|improve this answer





















  • Thanks for the quick reply. I dont have references to them, and these dependencies dont have references to them either as far as I know. I will try those suggestions
    – Raflos
    Nov 22 at 5:49




















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













There are likely 2 causes.




  1. Make sure you don't have references to them.


  2. You are using dependencies that are using dependencies. This is what happens.



The solve




  1. Use a dependency walker, and find out who is referencing them

  2. and/or use resharper to identify dependencies that aren't needed and remove them






share|improve this answer





















  • Thanks for the quick reply. I dont have references to them, and these dependencies dont have references to them either as far as I know. I will try those suggestions
    – Raflos
    Nov 22 at 5:49

















up vote
1
down vote













There are likely 2 causes.




  1. Make sure you don't have references to them.


  2. You are using dependencies that are using dependencies. This is what happens.



The solve




  1. Use a dependency walker, and find out who is referencing them

  2. and/or use resharper to identify dependencies that aren't needed and remove them






share|improve this answer





















  • Thanks for the quick reply. I dont have references to them, and these dependencies dont have references to them either as far as I know. I will try those suggestions
    – Raflos
    Nov 22 at 5:49















up vote
1
down vote










up vote
1
down vote









There are likely 2 causes.




  1. Make sure you don't have references to them.


  2. You are using dependencies that are using dependencies. This is what happens.



The solve




  1. Use a dependency walker, and find out who is referencing them

  2. and/or use resharper to identify dependencies that aren't needed and remove them






share|improve this answer












There are likely 2 causes.




  1. Make sure you don't have references to them.


  2. You are using dependencies that are using dependencies. This is what happens.



The solve




  1. Use a dependency walker, and find out who is referencing them

  2. and/or use resharper to identify dependencies that aren't needed and remove them







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 22 at 5:44









TheGeneral

26.2k53163




26.2k53163












  • Thanks for the quick reply. I dont have references to them, and these dependencies dont have references to them either as far as I know. I will try those suggestions
    – Raflos
    Nov 22 at 5:49




















  • Thanks for the quick reply. I dont have references to them, and these dependencies dont have references to them either as far as I know. I will try those suggestions
    – Raflos
    Nov 22 at 5:49


















Thanks for the quick reply. I dont have references to them, and these dependencies dont have references to them either as far as I know. I will try those suggestions
– Raflos
Nov 22 at 5:49






Thanks for the quick reply. I dont have references to them, and these dependencies dont have references to them either as far as I know. I will try those suggestions
– Raflos
Nov 22 at 5:49





Popular posts from this blog

Catalogne

Violoncelliste

Héron pourpré