-
Notifications
You must be signed in to change notification settings - Fork 198
Predefined Type '' is not defined or imported #226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @scottdurow. Same with me. I see you have committed vsix for Script# for VS2017 which I have installed. However build fails because of these errors. Looking at references I see that mscorlib has yellow exclamation mark there and it says Version 0.0.0.0 within properties. I suspect it cannot find Script# DLL. However it IS located here: I'v verified that ClientUI.csproj has this line: I have this in msbuild log:
And i DO NOT have this in log file (compared to sucessfull build on other project in VS2012):
The ScriptSharp.targets probably get parsed, because I see:
Regarding SparkleXrm\NuGet\ScriptSharp.vsix - what should it do when I install it?I see v7.6.0 under Tried removing/adding mscorlib manually to references and it says: |
There was a recent change to VS2017 that means that you need to update the project to work with Script# - there isn't any need to update the Script# visx as per the one I put in the gallery https://marketplace.visualstudio.com/items?itemName=ScottDurowMVP.ScriptSharp Open the project csprj and add the DisableHandlePackageFileConflicts property as you can see here -
|
Found another piece of info:
This looks very relevant: fsprojects/Paket#2740 Probably a new VS2017 template should be created or |
Yeah - you're right - we need to update the template for this. Any takers? |
Due to Visual Studio 2017 changes in how assemblies are resolved. Now project can be built using Visual Studio 2017
Thanks for quick responses. Looks like you had sorted that out. Maybe other templates also need including these directives? |
* Resolves #176 * Updated dependancies to v9 * 1.0.4 Updated assembly name and added dependnacy on fakeiteasy * Added support for setting all ExecutionContext properties * Fixes #218 & SetState & SetStateDynamicEntity message property of EntityMoniker (#220) * Fixes #218 * SetState & SetStateDynamicEntity use message property of EntityMoniker * Fixes #232 * Version 1.0.6 * ix dependency load error - Cannot resolve dependency to assembly 'Sy… …stem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event. site:stackoverflow.com * Fix #226: Predefined Type '' is not defined or imported (#236) Due to Visual Studio 2017 changes in how assemblies are resolved. Now project can be built using Visual Studio 2017 * Fixed typo (#280) * Fix some typos (#311) * Let OOB batch files to pass parameters like "/p" to spkl.exe * Add support for workflow base class Fix dependency load error
* Spkl dev 191212 (#347) * Resolves #176 * Updated dependancies to v9 * 1.0.4 Updated assembly name and added dependnacy on fakeiteasy * Added support for setting all ExecutionContext properties * Fixes #218 & SetState & SetStateDynamicEntity message property of EntityMoniker (#220) * Fixes #218 * SetState & SetStateDynamicEntity use message property of EntityMoniker * Fixes #232 * Version 1.0.6 * ix dependency load error - Cannot resolve dependency to assembly 'Sy… …stem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event. site:stackoverflow.com * Fix #226: Predefined Type '' is not defined or imported (#236) Due to Visual Studio 2017 changes in how assemblies are resolved. Now project can be built using Visual Studio 2017 * Fixed typo (#280) * Fix some typos (#311) * Let OOB batch files to pass parameters like "/p" to spkl.exe * Add support for workflow base class Fix dependency load error * Fix dependency load error (#346) * ix dependency load error - Cannot resolve dependency to assembly 'Sy… …stem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event. site:stackoverflow.com * Add support for workflow base class Fix dependency load error * #308 Removed dependency on OrganizationServiceProxy that does not support OAuth * 🧹 Fixed typo and formatting * 🧹 Code formatting clean up * 🧪 Unit/Integration Test Playlists * 📦 Updated to latest nuget packages * Added FilteringService dependencies * Removed WindowsForms reference from nuget package as it's no longer included in the SDK * Updated nuget spec to depend on CoreTools 9.1.0.25 * Compare web resources content before update (#352) * Comparing WebResource content, to skip unnecessary update * Comparing WebResource content, to skip unnecessary update * Ability to specify earlybound types as array, not single string with comma separator * #354 Export command 🧹 Code formatting tidy up * Use xrm tooling for command line login prompt (#373) * #369 New Command Line Login using Xrm.Tooling * Added message about /l legacy login switch * #366 - Allow registering of combined plugin/wf activity libraries (#374) * 🐛 Pick up Release assembly when in Release mode Co-authored-by: Andy Elsmore <[email protected]> Co-authored-by: pawelgradecki <[email protected]>
…ottdurow#236) Due to Visual Studio 2017 changes in how assemblies are resolved. Now project can be built using Visual Studio 2017
Hello Scott,
After including Sparkle package in my solution from Nuget, I get so many errors saying "Predefined Type '' is not defined or imported". It seems that after the import it does something with the solution and package and causing the error.
I am using Dynamics 365 SDK version 9.0.0.7 and VS 2017.
The text was updated successfully, but these errors were encountered: