MSBuild是......构建一切 [英] MSBuild is... building everything

查看:85
本文介绍了MSBuild是......构建一切的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!


所以我在Git存储库的一个分支中创建一个应用程序(使用GitKraken),我想知道,因为它是第一次构建,为什么它花了这么长时间编译,所以我查看了bin文件夹,我找到了100多个文件,其中95个是系统引用.dll文件
,如System.IO.File,System.Console和NuGet包,如Newtonsoft。 JSON。我删除了除NuGet包以外的所有程序,我的程序运行正常,但下次编译时,MSBuild会做同样的事情。我删除并重新克隆了回购。我在运行Core 2 Duo e8400的土豆计算机上使用
VS2017社区,但是我在朋友的PC上编译了这个并且发生了同样的事情,所以这是我最终的结果。


<请帮忙! :)


-Mr。 H

解决方案

先生,H


>>> 我删除了除NuGetpackages之外的所有内容,我的程序运行正常,但下次我编译它时MSBuild也是一样的。


你说你删除了它们所有除了金块包。你在哪里删除它们?从bin文件夹或解决方案资源管理器中的引用节点?如果你从References中删除它,你应该检查这个项目是否引用其他项目或者添加
a nugget包NETStandard.Libraryor你的一个包取决于NETStandard.Library,它拖累了大量的System。*依赖项。


如果以上对您没有帮助,您可以与我分享您的包裹清单或样本,以便我可以重现此问题。


Hi!

So I make an application in a branch of a Git repository (using GitKraken), and I wonder, as it builds for the first time, why it took so long to compile, so I look in the bin folder, and I find over 100 files, 95 of which are system reference .dll files like System.IO.File and System.Console and NuGet packages like Newtonsoft.Json. I deleted them all except the NuGet packages and my program runs fine, but the next time I compile it MSBuild does the same thing. I have deleted and re-cloned the repo. I am using VS2017 Community on a potato computer sporting a Core 2 Duo e8400, but I compiled this on a friend's PC and the same thing happened, so it's something at my end.

Please help! :)

-Mr. H

解决方案

Hi Mr,H

>>>I deleted them all except the NuGetpackagesand my program runs fine, but the next time I compile it MSBuilddoes the same thing.

You said you deleted them all except nugget packages. Where did you delete them? from the bin folder or in the node of References in the Solution Explorer? If you delete it from References, you should check if this project reference other projects or add a nugget package NETStandard.Libraryor one of your package depends on NETStandard.Library, which drags tons of System.* dependencies.

If above not help you, you can share your package list to me, or a sample so that I could reproduce this issue.


这篇关于MSBuild是......构建一切的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆