Atilla Ozgur
Atilla Ozgur

Reputation: 14701

Why some of Asp.Net MVC4 Templates need System.Spatial package?

Asp.Net MVC4 templates of Internet and Intranet needs System.Spatial nuget package?

<package id="System.Spatial" version="5.2.0" targetFramework="net45" />

This package is about geospatial data types. Why any web framework needs this? Is there any plausible reason for its inclusion in Asp.Net MVC4 templates?

Upvotes: 3

Views: 1142

Answers (1)

nemesv
nemesv

Reputation: 139758

Of course a generic web framework like the ASP.NET MVC does not need geospatial data types.

However for convenience reasons the templates may include some optional packages like in the this case the Microsoft ASP.NET Web API OData package (which as the name implies provides OData support for Web API endpoints) which uses the Microsoft.Data.OData which has support for spatial types so it depends on System.Spatial

See also on this package visualizer generated dependency graph fragment:

enter image description here

Upvotes: 7

Related Questions