Thursday, December 10, 2015

The type or namespace name 'DataMember' could not be found (are you missing a using directive or an assembly reference?)

The type or namespace name 'DataMember' could not be found (are you missing a using directive or an assembly reference?) 


using System.Runtime.Serialization;

        [DataMember]
        public string FileName { get; set; }

Solution:

Add this reference to your project:

System.Runtime.Serialization (System.Runtime.Serialization.dll)


The type or namespace name 'Add this reference to your project: System.Runtime.Serialization (System.Runtime.Serialization.dll)
System.Runtime.Serialization

Wednesday, December 9, 2015

The imported project WebApplication.targets was not found. Confirm that the path in the declaration is correct and that the file exists on disk.

The imported project WebApplication.targets was not found. Confirm that the path in the <Import> declaration is correct and that the file exists on disk.

Quick Solution (not considering MSBuild versions):

Copy the folder with the latest version number from C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio and paste it in C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio and renamed it to the version that is missing. Example:
Copy and paste:
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0 
as:
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0

Note: In the above solution, "C:\Program Files (x86)\" may be "C:\Program Files\" on your machine.


Saturday, December 5, 2015

Jolt Award 2014 Winners

Jolt Award 2014 Winners 


Book: Python in Practice by Mark Summerfield

Productivity: Programming: Principles and Practice Using C++, 2nd Edition by Bjarne Stroustrup

Productivity: Single Page Web Applications: JavaScript End-to-End by Michael Mikowski and Josh Powell

Jolt Finalist: Threat Modeling by Adam Shostack

Jolt Finalist: Rethinking the Internet of Things by Francis daCosta

Jolt Finalist: Automate With Grunt by Brian Hogan

Software:

Coding Tools Jolt Award: Microsoft Visual Studio 2013

Jolt Productivity Awards: JetBrains IntelliJ IDEA version 13, IPython Notebook.

Cloud9 IDE

Cloud9 IDE

Cloud9 IDE, the winner of Jolt Award 2015, is a freeware online integrated development environment. It supports hundreds of programming languages, including C++, PHP, Ruby, Python, JavaScript with Node.js, CSS, CoffeeScript, Lua and Go. It enables developers to get started with coding immediately with pre-setup workspaces, collaborate with their peers with collaborative coding features, and web development features like live preview and browser compatibility testing.

Developer's Step by Step Approach To Develop a Complex Software Component

Developer's Step by Step Approach To Develop a Complex Software Component
version 1.0

1. Understanding the requirements of the component.

2. Drawing a simple flowchart to present the process flow.

3. Drawing a simple flowchart to present how this component interacts with the other components.

4. Checking the UI/mockup screens to make sure they have all the elements/controls to cover the requirements.

5. Designing the tables to store data.

6. Identifying the major classes to be developed.

7. For each class, making a list of methods that should be developed to complete the processes identified in Step 2 and Step 3.

8. Developing stored procedures.

9. Developing class methods for DAL (data access layer).

10. Developing class methods for BAL (business access layer).

11. Developing class methods for API (application program interface).

12. Developing UI functions to call API methods.

13. Unit testing.

14. Packaging for QA.





All rights reserved. Any unauthorized broadcasting, public performance, copying or re-recording will constitute an infringement of copyright.


 




Wednesday, December 2, 2015

Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets"

Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets"


The imported project "C:\Program Files *** MSBuild Microsoft VisualStudio *** WebApplicationsMicrosoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. 

Solution:

Switch:

<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />

to:

<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />



or change:

<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />

to:

<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

If the issue persists then remove the following block from your csproj file:

  <PropertyGroup>
    <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
    <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
  </PropertyGroup> 

The type or namespace name 'Mvc' does not exist in the namespace 'System.Web'

The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

Solution: 

Clean your solution and then set the property of those references to Copy Local = True. If Copy Local is read-only, remove the reference and add it to the project again.

 
The type or namespace name 'Mvc' does not exist in the namespace 'System.Web'
Copy Local = True