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.
c# monogame
marked as duplicate by Amy
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.
add a comment |
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.
c# monogame
marked as duplicate by Amy
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
add a comment |
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.
c# monogame
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
c# monogame
asked Nov 22 at 5:39
Raflos
1
1
marked as duplicate by Amy
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
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
There are likely 2 causes.
Make sure you don't have references to them.
You are using dependencies that are using dependencies. This is what happens.
The solve
- Use a dependency walker, and find out who is referencing them
- and/or use resharper to identify dependencies that aren't needed and remove them
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
add a comment |
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.
Make sure you don't have references to them.
You are using dependencies that are using dependencies. This is what happens.
The solve
- Use a dependency walker, and find out who is referencing them
- and/or use resharper to identify dependencies that aren't needed and remove them
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
add a comment |
up vote
1
down vote
There are likely 2 causes.
Make sure you don't have references to them.
You are using dependencies that are using dependencies. This is what happens.
The solve
- Use a dependency walker, and find out who is referencing them
- and/or use resharper to identify dependencies that aren't needed and remove them
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
add a comment |
up vote
1
down vote
up vote
1
down vote
There are likely 2 causes.
Make sure you don't have references to them.
You are using dependencies that are using dependencies. This is what happens.
The solve
- Use a dependency walker, and find out who is referencing them
- and/or use resharper to identify dependencies that aren't needed and remove them
There are likely 2 causes.
Make sure you don't have references to them.
You are using dependencies that are using dependencies. This is what happens.
The solve
- Use a dependency walker, and find out who is referencing them
- and/or use resharper to identify dependencies that aren't needed and remove them
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
add a comment |
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
add a comment |
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