Archive for the ‘.NET’ Category
Posted by jpluimers on 2016/04/20
I tend to forget this: xsd.exe can resolve xs:include, but not xs:import. When using xs:import it will complain about missing types.
Simple solution: reference all imported XSDs (but not included XSDs) on the same command-line:
I was trying to create a C# class with xsd.exe from an schema that imports others schemas like that xsd.exe /c schema.xsd and it fails miserably reporting an error like “The datatype ‘xxx’ is missing.”. Basically xsd.exe doesn’t resolve the schemaLocation attribute.
Dare Obasanjo’s article addresses the problem, and Scott Hanselman had the same problem -and solved it-.
The solution isn’t very nice, but at least it’s simple. You have to tell xsd.exe all the schema referenced, xsd.exe /c schema.xsd importedSchema1.xsd importedSchema2.xsd
Be aware that the C# filename is sometimes generated from all XSD filenames on the command-line (I’ve noticed this when the import is specified before the actual XSD file, if the import is at the end, the name of the import is used.
If my memory serves me right, older versions of XSD.exe could not resolve unix-style relative paths on the command-line, but newer versions do.
–jeroen
via: Support of import in xsd.exe – Jose Luis Calvo Salanova – Site Home – MSDN Blogs.
Posted in .NET, C#, Development, Software Development, XML/XSD, XSD | Leave a Comment »
Posted by jpluimers on 2016/04/19
The good news: Delphi 10.1 Berlin is out and released in Berlin (note: you might want to rename Delphi 10 Seattle into Delphi 10.0 Seattle).
Some links:
The not so good thing: I won’t be using it for a while as now for like 6 weeks or so, all the embarcadero HTTPS sites have been vulnerable to the DROWN man-in-the-middle attack that has been discovered 20160301.
Which means that even without going around the non-HTTPS partner site, I won’t be able to make a secure connection and install it.
Which gives me more time to play with the Xamarin Visual Studio 2015 integration, the cool stuff that MvvmCross offers and some of the other .NET Goodness at BUILD 2016 – .NET ALL THE THINGS! | Beth Massi
Read the rest of this entry »
Posted in Delphi, Delphi 10 Seattle, Delphi 10.1 Berlin (BigBen), Development, QC, Software Development, Visual Studio 2015, Visual Studio and tools | 6 Comments »
Posted by jpluimers on 2016/04/14
Visual Studio is a pretty big product and will take over 30GB of disk space after installation
Source: Visual Studio Frequently Asked Questions
LOL. It’s about half the size of recent Delphi versions.
–jeroen
Posted in .NET, .NET 4.0, .NET 4.5, C#, C# 5.0, C# 6 (Roslyn), Delphi, Delphi 10 Seattle, Delphi XE8, Development, Software Development, VB.NET, Visual Studio 2015, Visual Studio and tools, Xamarin Studio | 4 Comments »
Posted by jpluimers on 2016/04/14
It is pretty easy to switch from the XSD Designer to the Code view: c# – Viewing XSD as code – Stack Overflow.
But I got a bit fed up of doing this each and every time after opening an XSD file in Visual Studio.
It turns out there is a default for that which is a bit hidden away: in the File Open dialog. There,
right click on an XSD file, choose “Open with…” and select the appropriate option – then click on “Set as Default” before you actually open it.
via Stop Visual Studio 2010 opening XSDs in design mode – Stack Overflow.
–jeroen
Posted in Development, Software Development, Visual Studio 11, Visual Studio 2010, Visual Studio 2013, Visual Studio 2014, Visual Studio 2015, Visual Studio and tools, XML/XSD, XSD | 1 Comment »
Posted by jpluimers on 2016/04/13
Cool, wish I had known this a few years ago (:
You can now undock the Pending Changes and Builds views and position them anywhere within the workbench window. Both views also now appear under Window > Show View, which makes it possible to add these views to another perspective.
–jeroen
via Team Explorer Everywhere 2013 is Available – Brian Harry’s blog – Site Home – MSDN Blogs.
Posted in .NET, Development, Software Development, Visual Studio 2013, Visual Studio 2014, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2016/04/07
Wow, Microsoft has come a long way:
MICROSOFT VISUAL STUDIO COMMUNITY 2015
These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. They apply to the software named above. The terms also apply to any Microsoft services or updates for the software, except to the extent those have different terms.
IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS BELOW.
- INSTALLATION AND USE RIGHTS.
- Individual license. If you are an individual working on your own applications to sell or for any other purpose, you may use the software to develop and test those applications.
- Organization licenses. If you are an organization, your users may use the software as follows:
- Any number of your users may use the software to develop and test your applications released under Open Source Initiative (OSI) approved open source software licenses.
- Any number of your users may use the software to develop and test extensions to Visual Studio.
- Any number of your users may use the software to develop and test your applications as part of online or in person classroom training and education, or for performing academic research.
- If none of the above apply, and you are also not an enterprise (defined below), then up to 5 of your individual users can use the software concurrently to develop and test your applications.
- If you are an enterprise, your employees and contractors may not use the software to develop or test your applications, except for open source and education purposes as permitted above. An “enterprise” is any organization and its affiliates who collectively have either (a) more than 250 PCs or users or (b) more than one million US dollars (or the equivalent in other currencies) in annual revenues, and “affiliates” means those entities that control (via majority ownership), are controlled by, or are under common control with an organization.
- Demo use. The uses permitted above include use of the software in demonstrating your applications.
The license continues, but the above are the most important aspect to verify if you can use Visual Studio 2015 under that license.
Source: MICROSOFT VISUAL STUDIO COMMUNITY 2015
Via Danial Rail and Mason Wheeler in this thread.
–jeroen
Posted in .NET, C#, Development, Software Development, VB.NET, Visual Studio 2015, Visual Studio and tools | 1 Comment »
Posted by jpluimers on 2016/04/06

Anders Live – Build 2016 – Channel 9 Stage C907 – Speakers: Anders Hejlsberg, Seth Juarez
Anders explaining about being a pragmatist ever since he started working on the Turbo Pascal predecessor in 1981. It’s been a long way to TypeScript and beyond (:
Lot’s of interesting tidbits about the future of TypeScript and how it relates to other languages.
Source: Anders Live | Build 2016 | Channel 9
Direct URLs:
–jeroen
PS:
The Turbo Pascal predecessors were called Blue Link Software Pascal, Compas Pascal and Poly Pascal as I learned last year while teaching a workshop for DAPUG in Denmark when I bumped into some people working with Anders while he still lived there a long time ago. Later I researched the above links.
Posted in .NET, C#, Delphi, Development, History, Pascal, Software Development, Turbo Pascal | 1 Comment »
Posted by jpluimers on 2016/03/22
Even though as of 12c R1, Oracle supports a row limiting clause, NHibernate 4.2 with Oracle.DataAccess.dll 2.112.3.0 does not support that.
When you let it generate the SQL for a LINQ Take call to limit the number of results, you get an exception like this (full exception and stack trace are below):
System.NotSupportedException was unhandled by user code
HResult=-2146233067
Message=Specified method is not supported.
The place where you Take is important, as this does fail:
Read the rest of this entry »
Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, .NET ORM, C#, C# 2.0, C# 3.0, C# 4.0, C# 5.0, C# 6 (Roslyn), Database Development, Development, NHibernate, OracleDB, Software Development | Leave a Comment »
Posted by jpluimers on 2016/03/17
When you have one app.config for your whole set of DTAP environments (develop/test/acceptance production), every once in a while you get this error:
ORA-12154: TNS:could not resolve the connect identifier specified
For this particular setup, it means the replacement of parameters in the app.config with actual values from the DTAP went wrong (or was missing). For that we’ve some steps in both the PreBuildEvent and PostBuildEvent of the .csproj file:
PreBuildEvent:
del "$(ProjectDir)$(TargetFileName).config"
copy "$(ProjectDir)app.config" "$(ProjectDir)$(TargetFileName).config"
PostBuildEvent:
powershell -noprofile -file Replace-Parameter.ps1 -Path "$(TargetDir)$(TargetFileName).config"
The PreBuildEvent looks like it is not needed, but sometimes Visual Studio forgets to perform the copy action.
–jeroen
Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, .NET ORM, C#, C# 2.0, C# 3.0, C# 4.0, C# 5.0, C# 6 (Roslyn), Database Development, Development, NHibernate, OracleDB, Software Development | Leave a Comment »