I'm somewhat new to Android development. I've noticed that every time I open Android Studio (which then attempts to re-open my most recent project) I see "gradle build" star running.
In my mind, if gradle is similar to "make" it should only be building when something has changed or I force the project to rebuild.
So why is it running just by opening the project? The sluggishness of Android Studio and gradle are two big turn-offs for me overall, as a new Android developer..
Thanks
Michael
Related
I wanted to start coding something using .NET MAUI, so I updated my VS2022 to "Version 17.1.0 Preview 6.0".
Then I installed these features using "Visual Studio Installer" as suggested in https://learn.microsoft.com/en-us/dotnet/maui/get-started/installation
Unfortunately when I create a basic MAUI app, I get several errors like this:
Error NU1012 Platform version is not present for one or more target
frameworks, even though they have specified a platform: net6.0-android
On developer command line I tried running dotnet workload list and got
android
ios
maui-android
maui-maccatalyst
If I try to install some other workload (eg maui or maui-windows) I get an error stating
Unable to download manifest microsoft.net.workload.emscripten:
microsoft.net.workload.emscripten.manifest-6.0.200 has not been found
on NuGet feeds https://api.nuget.org/v3/index.json, C:\Program Files
(x86)\Microsoft SDKs\NuGetPackages"
I've also tried to completely remove and reinstall VS2022, without any luck.
I've then tried to run maui-check but when it tries to download Recommendation: Download .NET SDK (6.0.200) the exe is not valid and the task fails.
Worst part: I tried to install a fresh VS2022 preview on a different pc and everything works flawlessly... but I need it to work on my developmente pc!
.
I click IDEA.64 and there is no response. However, when I click idea.pat, it could launch. I am very confused. I tried to uninstall and install again, but it doesn't work. Also, my Clion has the same issue.
The answer from JB's community by Konstantin Annikov :
'Please install https://aka.ms/vs/16/release/vc_redist.x64.exe. The root cause is that vcruntime140.dll from Visual C++ Redistributable package failed to load. It is one of jbr\bin\awt.dll dependencies. Visual Studio makes changes to C++ tools sometimes and we are working on including this dll into IDE installation, or exclude its functionality.C++ tools are needed to run IntelliJ IDEA'
Using Visual Studio 2015 Enterprise on Windows 10 64-bit. Working with a solution which contains a bunch of C# library projects.
When building the solution, then building it again, then repeating this, each time there are a handful of projects which build every time. There have been no changes to any of the source files, yet VS still wants to build these projects.
Anyone have any tips on debugging the build dependencies to figure out WHY it wants to build these projects each time?
In VS2015, opening a web project/solution that uses node packages (e.g. gulpfile.js) will cause VS to automatically run "npm install" and install all the packages. VS2015 comes with an old version of npm (1.4.19), which doesn't do a "flat" install of package dependencies, which causes paths to get created that are over 260 characters. This is really painful when it happens every time Visual Studio is opened. I've found several workarounds (including http://jameschambers.com/2015/09/upgrading-npm-in-visual-studio-2015/), but ideally there would be a setting somewhere to disable "auto npm install" or something like that, I just either can't find the setting or it doesn't exist.
You can literally "hide" all web tools from Visual Studio:
Under Tools menu select "Options..."
Go to "Projects and Solutions" -> "External Web Tools"
If you want to make Visual Studio use your globally installed npm - just remove checkboxes from all items starting with $(DevEnvDir).
If you want to completely disable all web tools in VS: uncheck all.
I am trying to convert a build system setup with TeamCity and Nant scripts to use TFS2010 (We bought the license and might just as well make use of it) After some work I get the web project to build and deploy to the web-server. We have a domain, API, test and web project in our solution.
How do I configure TFS to run the unit tests that we have written so far? I did configure the build to look for ***.UnitTest.dll in(VS2010) Edit build definition>Process>Automated Tests
Now the build fails with a message that says:"Could not load file or assembly 'nunit.framework, Version=2.5.3.9345" Am I correct when I say that TFS is trying to run NUnit on the build server? I did install NUnit-2.5.3.9345 on that TFS2010 build server and still nothing?
Thank you
Jack
The build facility in TFS uses MSTest as test runner, with which it's tightly integrated.
If you want to run your unit tests with NUnit as part of your build, take a look at the NUnit for Team Build project on CodePlex.
The project started out for TFS 2008, however support for TFS 2010 has been added in version 2.0. Note that this feature is still in early stages of development, so your mileage may vary.
I'm late to the game, because I've had to deal with this issue recently. I found this article helpful for me in this. It didn't work right off the bat, but I found if I added it into my buildscript via the controls in a similar manner/pattern, it would work.
My only problem now has been getting it to actually error (right now it warns) even when flagging them to cause the build to error
Link: http://blog.gfader.com/2011/06/running-nunit-tests-in-tfs-2010.html