I updated all my project to aspnet 5 core because I was using the dnx vnext and apparently it worked everything right, but by conducting tests I noticed that some values did not come correct and to debug I realized that the parameter array SqlParameter is not picking up the values, for example if I have an array with 5 parameters and it contains parameters of type int it populates otherwise and I do not think it is some inconsistency of the lib System.Data.SqlClient, does anyone know anything about it? In the visual studio it is underlined, showing the following message:
Assuming assembly reference 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' matches 'System.Data.SqlClient, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35', you may need to supply runtime policy.
This is my project.json
{
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.0",
"type": "platform"
},
"Microsoft.AspNetCore.Diagnostics": "1.0.0",
"Microsoft.AspNetCore.Mvc": "1.0.0",
"Microsoft.AspNetCore.Razor.Tools": {
"version": "1.0.0-preview2-final",
"type": "build"
},
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0",
"Microsoft.AspNetCore.StaticFiles": "1.0.0",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0",
"Microsoft.Extensions.Configuration.Json": "1.0.0",
"Microsoft.Extensions.Configuration.CommandLine": "1.0.0",
"Microsoft.Extensions.Logging": "1.0.0",
"Microsoft.Extensions.Logging.Console": "1.0.0",
"Microsoft.Extensions.Logging.Debug": "1.0.0",
"Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0",
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0",
"Microsoft.AspNetCore.Authentication.Cookies": "1.0.0",
"Microsoft.Extensions.Configuration.UserSecrets": "1.0.0",
"System.Security.Cryptography.Algorithms": "4.2.0",
"Microsoft.AspNetCore.Owin": "1.0.0",
"BundlerMinifier.Core": "2.2.281",
"Microsoft.EntityFrameworkCore.SqlServer": "1.0.0",
"System.Data.SqlClient": "4.1.0",
"Microsoft.EntityFrameworkCore": "1.0.0",
"System.Runtime": "4.1.0",
"System.Data.Common": "4.1.0",
"Microsoft.AspNetCore.Hosting.Abstractions": "1.0.0"
},
"tools": {
"Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final",
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final"
},
"frameworks": {
"netcoreapp1.0": {
"imports": [
"dotnet5.6",
"portable-dnxcore50+net45+win8+wp8+wpa81"
]
}
},
"buildOptions": {
"emitEntryPoint": true,
"preserveCompilationContext": true
},
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},
"publishOptions": {
"include": [
"wwwroot",
"Views",
"Areas/**/Views",
"appsettings.json",
"web.config"
]
},
"scripts": {
"_comment": "dotnet bundle",
"precompile": [ "gulp clean", "gulp min" ],
"prepublish": [ "npm install", "bower install" ],
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
},
"tooling": {
"defaultNamespace": "meuprojeto"
}
}