Search This Blog

Monday, July 30, 2018

MsBuild generating obj folder only - bin folder not created

I have a jenkins job that calls msbuild.exe like

/t:Clean /p:WarningLevel=3 /P:Configuration=Release /p:AllowUnsafeBlocks=true

only when I dropped the /t:Clean option, did the folder bin finally get back being created again.

Wednesday, July 25, 2018

Workaround for the inability to assign a name to a Task in C#

There is no way to set a name to a Task. Sometimes seems this would be useful, like we used to do with Threads, so we could know which threads are still running, i.e., which pieces of our whole processing are still left to do.

I thought of using a dictionary to relate Task ids and names we want to assign them.
Here is a sample.

Thursday, July 19, 2018

Visual Studio throwing error in trying to debug Silverlight project

Saying something in the lines "visual studio unable to start debugging ***silverlight***" ?

Try uninstallng your installed silverlight runtime components, and reinstalling their 32 bit version.
And set your windows default browser to Internet Explorer.

Silverlight 32 bit download
Silverlight 32 bit Developer Runtime download

Wednesday, July 18, 2018

Sunday, July 15, 2018

Getting OperationCancelledException in your c# WebApi tests, using Advanced Rest Client as the http client tool ?

Make sure the Request Behavior -> Request Timeout setting suits your needs.
I was making a request that takes around a minute to return from the database, but Advanced Rest Client was quitting it before my Web Api project could return the data, because its Request Timeout setting was too small.

Tuesday, July 3, 2018

How to have all ElasticSearch.NET returned JSONs pretty formatted/indented

I was having trouble in figuring out how to have the ElasticSearch.NET api responses JSONs pretty formatted.

Inquired that at StackOverflow and someone, of course, found the solution!